Mac: fix static linkage

- Link against Cocoa, not CoreServices (for NSFileManager)
This commit is contained in:
James Turner 2014-01-28 12:39:28 +00:00
parent 0f5cbc35a2
commit 8f6677974e
2 changed files with 3 additions and 3 deletions

View 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)

View 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