From: James Turner Date: Tue, 28 Jan 2014 12:39:28 +0000 (+0000) Subject: Mac: fix static linkage X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f6677974eaca209d4b2fee4c04ffa2b72482e02;p=simgear.git Mac: fix static linkage - Link against Cocoa, not CoreServices (for NSFileManager) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f982e26f..47d8e9d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index 6239522e..314c222e 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -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