Changeset 3005d51 in subsurface


Ignore:
Timestamp:
Dec 31, 2016, 9:33:36 PM (8 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
459ffef
Parents:
8889679
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

    r76dfcdc r3005d51  
    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.