Changeset 76dfcdc in subsurface


Ignore:
Timestamp:
Dec 31, 2016, 9:17:02 PM (4 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
8889679
Parents:
004f6808
Message:

Mac build: hack to get the correct std C++ lib on Lion

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r529a4d49 r76dfcdc  
    7070if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    7171        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 ")
    72         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
     72        if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND ${CMAKE_SYSTEM_VERSION} MATCHES "11.4.")
     73                set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
     74        else()
     75                set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
     76        endif()
    7377elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
    7478        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 ")
Note: See TracChangeset for help on using the changeset viewer.