We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbc300 commit 2f2239cCopy full SHA for 2f2239c
CMakeLists.txt
@@ -76,7 +76,11 @@ if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
76
elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang)
77
# We want to link in C++11 mode in Clang too, but also set a high enough
78
# template depth for the template metaprogramming.
79
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -ftemplate-depth=256 -std=c++11 -stdlib=libc++")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -ftemplate-depth=256 -std=c++11")
80
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
81
+ # Use libc++ only in OS X.
82
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
83
+ endif()
84
endif()
85
86
0 commit comments