From e6d396d17de4105a5c10297e3375b88e04341651 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 26 May 2011 12:15:42 +0000 Subject: [PATCH] fix for installing blender as a python module with cmake. --- source/creator/CMakeLists.txt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 289a625ac59..aea48d88b47 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -278,17 +278,11 @@ if(UNIX AND NOT APPLE) else() # main blender binary if(WITH_PYTHON_MODULE) - get_target_property(_module_name blender OUTPUT_NAME) - if(NOT _module_suffix) - set(_module_suffix "${SUFFIX}") - endif() - install( - PROGRAMS "${TARGETDIR}/${_module_name}.so" # XXX, *nix only + TARGETS blender + LIBRARY DESTINATION ${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages ) - - unset(_module_name) else() install( PROGRAMS ${TARGETDIR}/blender