Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-26 16:15:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-26 16:15:42 +0400
commite6d396d17de4105a5c10297e3375b88e04341651 (patch)
tree91e673c4a55728c556842c574fdc62ed8d8a5189 /source/creator
parent514de547ac8315c4be2ff76a22494f60145896b9 (diff)
fix for installing blender as a python module with cmake.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt10
1 files 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