Try building on OS X with libc++
(cherry picked from commit 327181ef18fee22e2c05f2e8303efeffdc63cae0)
This commit is contained in:
parent
977a6769b2
commit
3e46b6134e
@ -16,6 +16,10 @@ if (CMAKE_CXX_COMPILER MATCHES ".*clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-uninitialized")
|
||||
endif ()
|
||||
|
||||
if (APPLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --stdlib=libc++")
|
||||
endif ()
|
||||
|
||||
set(CMAKE_REQUIRED_FLAGS "-std=c++0x")
|
||||
check_cxx_source_compiles(
|
||||
"#include <unordered_map>
|
||||
|
Loading…
x
Reference in New Issue
Block a user