fix for installing blender as a python module with cmake.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 26 May 2011 12:15:42 +0000 (12:15 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 26 May 2011 12:15:42 +0000 (12:15 +0000)
source/creator/CMakeLists.txt

index 289a625ac59f5cdec447a3fdabe6a214e89d2034..aea48d88b474f467ee9653d56995955aaf57e64c 100644 (file)
@@ -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