Fix for CMake > 2.8.9 on OS X

Gaming / Game Engines / OpenMW - Nikolay Kasyanov [gmail.com] - 9 June 2013 11:59 EDT



###

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ee9382..04ff2fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,10 @@ if (APPLE)
set(APP_BUNDLE_NAME "${CMAKE_PROJECT_NAME}.app")

set(APP_BUNDLE_DIR "${OpenMW_BINARY_DIR}/${APP_BUNDLE_NAME}")
+
+ set(CMAKE_EXE_LINKER_FLAGS "-F /Library/Frameworks")
+ set(CMAKE_SHARED_LINKER_FLAGS "-F /Library/Frameworks")
+ set(CMAKE_MODULE_LINKER_FLAGS "-F /Library/Frameworks")
endif (APPLE)

# Macros

d13430e Fix for CMake > 2.8.9 on OS X
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)

Upstream: github.com


  • Share