Pārlūkot izejas kodu

* BugFix: Clear the absolute rpath generated on OSX by default.

Robert MacGregor 3 gadi atpakaļ
vecāks
revīzija
0038a9d3f3
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      Engine/source/CMakeLists.txt

+ 3 - 0
Engine/source/CMakeLists.txt

@@ -332,6 +332,9 @@ if (APPLE)
 
 
   # Ensure the shared libraries are actually referenced at the correct path
   # Ensure the shared libraries are actually referenced at the correct path
   add_custom_command(TARGET ${TORQUE_APP_NAME} POST_BUILD COMMAND install_name_tool -add_rpath "@executable_path/../Frameworks" ${TORQUE_APP_GAME_DIRECTORY}/${TORQUE_APP_NAME}.app/Contents/MacOS/${TORQUE_APP_NAME})
   add_custom_command(TARGET ${TORQUE_APP_NAME} POST_BUILD COMMAND install_name_tool -add_rpath "@executable_path/../Frameworks" ${TORQUE_APP_GAME_DIRECTORY}/${TORQUE_APP_NAME}.app/Contents/MacOS/${TORQUE_APP_NAME})
+
+  # Clear the absolute rpath generated by default
+  add_custom_command(TARGET ${TORQUE_APP_NAME} POST_BUILD COMMAND install_name_tool -delete_rpath "${TORQUE_APP_GAME_DIRECTORY}/${TORQUE_APP_NAME}.app/Contents/Frameworks" ${TORQUE_APP_GAME_DIRECTORY}/${TORQUE_APP_NAME}.app/Contents/MacOS/${TORQUE_APP_NAME})
 elseif (WIN32)
 elseif (WIN32)
 	add_executable(${TORQUE_APP_NAME} WIN32 ${TORQUE_SOURCE_FILES})
 	add_executable(${TORQUE_APP_NAME} WIN32 ${TORQUE_SOURCE_FILES})