Mac: fix static linkage
- Link against Cocoa, not CoreServices (for NSFileManager)
This commit is contained in:
parent
0f5cbc35a2
commit
8f6677974e
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user