Commit 51bc1dd4 authored by Davis King's avatar Davis King

Updated C++11 enabling script to work around some kind of bug in cmake related

to new versions of clang on OSX, without this extra statement C++11 wasn't
being enabled.
parent 0cbd17e2
......@@ -79,6 +79,9 @@ else()
if (NOT CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS 11)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if (APPLE AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_global_compiler_switch("-std=c++11")
endif()
message(STATUS "C++11 activated.")
endif()
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment