From 2e4c226997481ad5463e909524e6f3bf05505fe0 Mon Sep 17 00:00:00 2001 From: archshift Date: Sun, 2 Nov 2014 09:59:30 -0800 Subject: [PATCH] Build with Clang using libc++ --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbe9f76cd..b4581d9f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,9 +80,12 @@ endif() IF (APPLE) # CoreFoundation is required only on OSX FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation) +ENDIF (APPLE) + +if ("${CMAKE_COMPILER_ID}" STREQUAL "Clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++") -ENDIF (APPLE) +endif() option(ENABLE_QT "Enable the Qt frontend" ON) option(CITRA_FORCE_QT4 "Use Qt4 even if Qt5 is available." OFF)