Changeset 3657cbe in subsurface


Ignore:
Timestamp:
Jan 1, 2017, 4:23:49 AM (11 months ago)
Author:
Miika Turkia <miika.turkia@…>
Branches:
master
Children:
459ffef
Parents:
f9d9e03
git-author:
Dirk Hohndel <dirk@…> (12/31/16 21:33:36)
git-committer:
Miika Turkia <miika.turkia@…> (01/01/17 04:23:49)
Message:

Mac build: make std C++ lib hack catch more situations

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    re89c2059 r3657cbe  
    7070if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    7171        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 ")
    72         if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND ${CMAKE_SYSTEM_VERSION} MATCHES "11.4.")
     72        if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND
     73           (${CMAKE_SYSTEM_VERSION} MATCHES "11.4." OR ${CMAKE_OSX_DEPLOYMENT_TARGET} MATCHES "10.7" OR ${CMAKE_OSX_DEPLOYMENT_TARGET} MATCHES "10.8"))
    7374                set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
    7475        else()
Note: See TracChangeset for help on using the changeset viewer.