Changeset e89c2059 in subsurface


Ignore:
Timestamp:
Jan 1, 2017, 4:23:49 AM (7 weeks ago)
Author:
Miika Turkia <miika.turkia@…>
Branches:
master
Children:
f9d9e03
Parents:
843482a
git-author:
Dirk Hohndel <dirk@…> (12/31/16 21:17:02)
git-committer:
Miika Turkia <miika.turkia@…> (01/01/17 04:23:49)
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 re89c2059  
    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.