From 327181ef18fee22e2c05f2e8303efeffdc63cae0 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Mon, 27 Jan 2014 16:32:02 +0100 Subject: [PATCH] Try building on OS X with libc++ --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08d847bbc..9764981ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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