[Bf-blender-cvs] [8c3538c] master: Cmake Cpack fix cpack on Apple and Linux

Martijn Berger noreply at git.blender.org
Sat Nov 7 22:44:05 CET 2015


Commit: 8c3538c3e7f816b43cb8cf33570e4082d5bec5ec
Author: Martijn Berger
Date:   Sat Nov 7 22:42:21 2015 +0100
Branches: master
https://developer.blender.org/rB8c3538c3e7f816b43cb8cf33570e4082d5bec5ec

Cmake Cpack fix cpack on Apple and Linux

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

M	source/creator/CMakeLists.txt

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

diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 8feb882..08390b5 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -292,7 +292,8 @@ elseif(APPLE)
 	else()
 		set(TARGETDIR_VER blender.app/Contents/Resources/${BLENDER_VERSION})
 	endif()
-
+	# Skip relinking on cpack / install
+	set_target_properties(blender PROPERTIES BUILD_WITH_INSTALL_RPATH true)
 endif()
 
 
@@ -1020,7 +1021,7 @@ if(DEFINED BLENDER_TEXT_FILES_DESTINATION)
 		"
 		file(READ \"${CMAKE_SOURCE_DIR}/release/text/readme.html\" DATA_SRC)
 		string(REGEX REPLACE \"BLENDER_VERSION\" \"${BLENDER_VERSION}\" DATA_DST \"\${DATA_SRC}\")
-		file(WRITE \"\${CMAKE_BINARY_DIR}/release/text/readme.html\" \"\${DATA_DST}\")
+		file(WRITE \"${CMAKE_BINARY_DIR}/release/text/readme.html\" \"\${DATA_DST}\")
 		unset(DATA_SRC)
 		unset(DATA_DST)
 		"




More information about the Bf-blender-cvs mailing list