macosx: fix linker option warning

This commit is contained in:
Marc-André Moreau 2012-11-11 20:05:23 -05:00
parent 1c4a587ef1
commit 7714a625c3

View File

@ -166,13 +166,10 @@ if(APPLE)
include_directories(/opt/local/include)
link_directories(/opt/local/lib)
endif()
if(WITH_CLANG)
set(CMAKE_C_COMPILER "clang")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.4")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl-framework,CoreFoundation")
endif()
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)