[Bf-blender-cvs] [7d88f0c] master: CMake: fix for msvc (take2)

Campbell Barton noreply at git.blender.org
Mon Dec 1 15:37:04 CET 2014


Commit: 7d88f0ce4d2184ad7ee51c01babce4a76935de75
Author: Campbell Barton
Date:   Mon Dec 1 15:36:35 2014 +0100
Branches: master
https://developer.blender.org/rB7d88f0ce4d2184ad7ee51c01babce4a76935de75

CMake: fix for msvc (take2)

===================================================================

M	source/creator/CMakeLists.txt

===================================================================

diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
old mode 100644
new mode 100755
index 6903ab8..3b41b94
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -632,6 +632,7 @@ elseif(WIN32)
 			install(
 				CODE
 				"
+				message(STATUS \"Extracting Python to: \${CMAKE_INSTALL_PREFIX}/${BLENDER_VERSION}/python\")
 				if(\"\${CMAKE_INSTALL_CONFIG_NAME}\" MATCHES \"^([Dd][Ee][Bb][Uu][Gg])$\")
 					set(PYTHON_ZIP ${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}_d.tar.gz)
 				else()
@@ -639,20 +640,16 @@ elseif(WIN32)
 				endif()
 
 				execute_process(
-					COMMAND ${CMAKE_COMMAND} -E
-					        make_directory \"${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib\"
-					COMMAND ${CMAKE_COMMAND} -E
-					        tar xzfv \"\${PYTHON_ZIP} -C ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib\"
+					COMMAND \${CMAKE_COMMAND} -E make_directory
+					        \"\${CMAKE_INSTALL_PREFIX}/${BLENDER_VERSION}/python/lib\"
+					COMMAND \${CMAKE_COMMAND} -E
+					        chdir \"\${CMAKE_INSTALL_PREFIX}/${BLENDER_VERSION}/python/lib\"
+					        \${CMAKE_COMMAND} -E
+					        tar xzfv \"\${PYTHON_ZIP}\"
 				)
 				unset(PYTHON_ZIP)
 				"
 			)
-			# install python
-			install(
-				DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib
-				DESTINATION ${BLENDER_VERSION}/python
-				PATTERN 'site-packages/*' EXCLUDE
-			)
 
 			# release/site-packages
 			install(
@@ -672,7 +669,6 @@ elseif(WIN32)
 				install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages/numpy
 						DESTINATION ${BLENDER_VERSION}/python/lib/site-packages)
 			endif()
-
 		endif()
 
 		unset(_PYTHON_VERSION_NO_DOTS)




More information about the Bf-blender-cvs mailing list