]> git.mxchange.org Git - simgear.git/commitdiff
Mac: fix static linkage
authorJames Turner <zakalawe@mac.com>
Tue, 28 Jan 2014 12:39:28 +0000 (12:39 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 28 Jan 2014 12:39:28 +0000 (12:39 +0000)
- Link against Cocoa, not CoreServices (for NSFileManager)

CMakeLists.txt
simgear/CMakeLists.txt

index f982e26fe42e475146f2fad6529ac5de496f616a..47d8e9d055476585f396938f1179468d61598f70 100644 (file)
@@ -160,7 +160,7 @@ if (MSVC AND MSVC_3RDPARTY_ROOT)
 endif (MSVC AND MSVC_3RDPARTY_ROOT)
 
 if(APPLE)
-  find_library(CORE_SERVICES_LIBRARY CoreServices)
+  find_library(COCOA_LIBRARY Cocoa)
 endif()
 
 find_package(Boost REQUIRED)
@@ -369,7 +369,7 @@ set(TEST_LIBS_INTERNAL_CORE
     ${WINSOCK_LIBRARY}
     ${RT_LIBRARY}
     ${DL_LIBRARY}
-    ${CORE_SERVICES_LIBRARY})
+    ${COCOA_LIBRARY})
 set(TEST_LIBS SimGearCore ${TEST_LIBS_INTERNAL_CORE})
 
 if(NOT SIMGEAR_HEADLESS)
index 6239522e6128ee1ac9849424e096cc42569fc35d..314c222e03648466da18f5c4785e9b2d789f5d68 100644 (file)
@@ -122,7 +122,7 @@ target_link_libraries(SimGearCore
     ${DL_LIBRARY}
     ${EXPAT_LIBRARIES}
     ${CMAKE_THREAD_LIBS_INIT}
-    ${CORE_SERVICES_LIBRARY})
+    ${COCOA_LIBRARY})
 
 if(NOT SIMGEAR_HEADLESS)
     target_link_libraries(SimGearScene