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>2015-03-24 11:09:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-03-24 11:09:51 +0300
commit3030e2d1cb1aaec554a409e44170b890d073c661 (patch)
treecb568cd6d99c0f258a944a91b1b199f3612ce258 /source/creator
parent4560570f8ac91b7ce349c8c1079caaf1f21848bf (diff)
CMake: tweak recent py module changes
support installing portable builds to CMAKE_INSTALL_PREFIX
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt21
1 files changed, 16 insertions, 5 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index b9044e64ddd..193737e9822 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -262,7 +262,11 @@ endif()
if(UNIX AND NOT APPLE)
if(WITH_PYTHON_MODULE)
- set(TARGETDIR_VER ${PYTHON_SITE_PACKAGES}/${BLENDER_VERSION})
+ if(WITH_INSTALL_PORTABLE)
+ set(TARGETDIR_VER ${BLENDER_VERSION})
+ else()
+ set(TARGETDIR_VER ${PYTHON_SITE_PACKAGES}/${BLENDER_VERSION})
+ endif()
else()
if(WITH_INSTALL_PORTABLE)
set(TARGETDIR_VER ${BLENDER_VERSION})
@@ -408,10 +412,17 @@ if(UNIX AND NOT APPLE)
# there are a few differences between portable and system install
if(WITH_PYTHON_MODULE)
- install(
- TARGETS blender
- LIBRARY DESTINATION ${PYTHON_SITE_PACKAGES}
- )
+ if(WITH_INSTALL_PORTABLE)
+ install(
+ TARGETS blender
+ DESTINATION "."
+ )
+ else()
+ install(
+ TARGETS blender
+ LIBRARY DESTINATION ${PYTHON_SITE_PACKAGES}
+ )
+ endif()
# none of the other files are needed currently
elseif(WITH_INSTALL_PORTABLE)
install(