From 12e7a10ab566140cb2ac38af59c85700ea9204b0 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Sun, 11 Sep 2016 11:21:59 +0200 Subject: [PATCH] Fixed Xcode detection --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c99c019..9b9c906 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") endif() # Make sure Xcode uses libc++ instead of libstdc++, allowing us to use the C++14 standard library prior to OS X 10.9 -if("${CMAKE_GENERATOR}" STREQUAL "Xcode") +if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang") add_compile_options(-stdlib=libc++) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++") endif()