Use CoreServices, not Cocoa, for FSFindFolder

This commit is contained in:
James Turner 2013-06-12 22:11:43 +02:00
parent 14f04878d1
commit b4526f926d
2 changed files with 8 additions and 6 deletions

View File

@ -168,6 +168,10 @@ if (MSVC AND MSVC_3RDPARTY_ROOT)
set (OPENAL_LIBRARY_DIR ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/lib)
endif (MSVC AND MSVC_3RDPARTY_ROOT)
if(APPLE)
find_library(CORE_SERVICES_LIBRARY CoreServices)
endif()
find_package(Boost REQUIRED)
set (BOOST_CXX_FLAGS "-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_BIMAP_DISABLE_SERIALIZATION")
@ -378,11 +382,8 @@ if(ENABLE_TESTS)
${CMAKE_THREAD_LIBS_INIT}
${ZLIB_LIBRARY}
${WINSOCK_LIBRARY}
${RT_LIBRARY})
if(APPLE)
find_library(COCOA_LIBRARY Cocoa)
list(APPEND TEST_LIBS ${COCOA_LIBRARY})
endif()
${RT_LIBRARY}
${CORE_SERVICES_LIBRARY})
endif()
if(NOT SIMGEAR_HEADLESS)

View File

@ -66,7 +66,8 @@ if(SIMGEAR_SHARED)
target_link_libraries(SimGearCore ${ZLIB_LIBRARY} ${RT_LIBRARY}
${LibArchive_LIBRARIES}
${EXPAT_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT})
${CMAKE_THREAD_LIBS_INIT}
${CORE_SERVICES_LIBRARY})
if(LIBSVN_FOUND)
target_link_libraries(SimGearCore ${LIBSVN_LIBRARIES})