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)
|
endif (MSVC AND MSVC_3RDPARTY_ROOT)
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
find_library(CORE_SERVICES_LIBRARY CoreServices)
|
find_library(COCOA_LIBRARY Cocoa)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Boost REQUIRED)
|
find_package(Boost REQUIRED)
|
||||||
@ -369,7 +369,7 @@ set(TEST_LIBS_INTERNAL_CORE
|
|||||||
${WINSOCK_LIBRARY}
|
${WINSOCK_LIBRARY}
|
||||||
${RT_LIBRARY}
|
${RT_LIBRARY}
|
||||||
${DL_LIBRARY}
|
${DL_LIBRARY}
|
||||||
${CORE_SERVICES_LIBRARY})
|
${COCOA_LIBRARY})
|
||||||
set(TEST_LIBS SimGearCore ${TEST_LIBS_INTERNAL_CORE})
|
set(TEST_LIBS SimGearCore ${TEST_LIBS_INTERNAL_CORE})
|
||||||
|
|
||||||
if(NOT SIMGEAR_HEADLESS)
|
if(NOT SIMGEAR_HEADLESS)
|
||||||
|
@ -122,7 +122,7 @@ target_link_libraries(SimGearCore
|
|||||||
${DL_LIBRARY}
|
${DL_LIBRARY}
|
||||||
${EXPAT_LIBRARIES}
|
${EXPAT_LIBRARIES}
|
||||||
${CMAKE_THREAD_LIBS_INIT}
|
${CMAKE_THREAD_LIBS_INIT}
|
||||||
${CORE_SERVICES_LIBRARY})
|
${COCOA_LIBRARY})
|
||||||
|
|
||||||
if(NOT SIMGEAR_HEADLESS)
|
if(NOT SIMGEAR_HEADLESS)
|
||||||
target_link_libraries(SimGearScene
|
target_link_libraries(SimGearScene
|
||||||
|
Loading…
Reference in New Issue
Block a user