On Mac, force the macon-min-version value
- Workaround for CMAKE_OSX_DEPLOYMENT_TARGET not behaving as it’s supposed to reliably.
This commit is contained in:
parent
5c7d261df5
commit
5bf59d58c4
1 changed files with 5 additions and 0 deletions
|
@ -108,6 +108,11 @@ IF(APPLE)
|
|||
find_library(CORESERVICES_LIBRARY CoreServices)
|
||||
find_library(COCOA_LIBRARY Cocoa)
|
||||
list(APPEND PLATFORM_LIBS ${COCOA_LIBRARY} ${CORESERVICES_LIBRARY})
|
||||
|
||||
# this should be handled by setting CMAKE_OSX_DEPLOYMENT_TARGET
|
||||
# but it's not working reliably, so forcing it for now
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7")
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.7")
|
||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR
|
||||
${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||
find_package(Threads REQUIRED)
|
||||
|
|
Loading…
Reference in a new issue