mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-13 10:50:34 +00:00
Adding detection of Mac OS X 10.10 Yosemite
This commit is contained in:
parent
b27f09907b
commit
49ba62cefa
@ -171,6 +171,12 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(OS_IS_MACOSX TRUE)
|
||||
exec_program(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION)
|
||||
string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${DARWIN_VERSION})
|
||||
if(${DARWIN_VERSION} MATCHES "14")
|
||||
set(MACOSX_YOSEMITE TRUE)
|
||||
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
|
||||
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
|
||||
message(STATUS "Configuring GNSS-SDR v${VERSION} to be built on Mac OS X 10.10 Yosemite")
|
||||
endif(${DARWIN_VERSION} MATCHES "14")
|
||||
if(${DARWIN_VERSION} MATCHES "13")
|
||||
set(MACOSX_MAVERICKS TRUE)
|
||||
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
|
||||
|
Loading…
Reference in New Issue
Block a user