mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
CMake: more changes to a simple conditional
It seems the CMake versions on Linux and Mac disagree about what might be the correct way to use parenthesis in a mixed AND/OR conditional. This may seem overkill, but it made both CMake versions happy. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ba23989e6b
commit
7312cfc2d0
1 changed files with 4 additions and 2 deletions
|
@ -69,8 +69,10 @@ set(CMAKE_MODULE_PATH
|
|||
#
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 ")
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND
|
||||
(${CMAKE_SYSTEM_VERSION} MATCHES "11.4." OR ${CMAKE_OSX_DEPLOYMENT_TARGET} MATCHES "10.7" OR ${CMAKE_OSX_DEPLOYMENT_TARGET} MATCHES "10.8"))
|
||||
if((${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND
|
||||
((${CMAKE_SYSTEM_VERSION} MATCHES "11.4.") OR
|
||||
(${CMAKE_OSX_DEPLOYMENT_TARGET} MATCHES "10.7") OR
|
||||
(${CMAKE_OSX_DEPLOYMENT_TARGET} MATCHES "10.8")))
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
|
|
Loading…
Reference in a new issue