We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47e72e9 commit 29ba755Copy full SHA for 29ba755
1 file changed
CMakeLists.txt
@@ -13,9 +13,9 @@ FetchContent_Declare(
13
)
14
FetchContent_MakeAvailable(endstone)
15
16
-if (MSVC)
+if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
17
add_compile_definitions(_ITERATOR_DEBUG_LEVEL=0)
18
-else ()
+elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
19
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -fPIC")
20
link_libraries(-static-libgcc -static-libstdc++ libc++.a libc++abi.a)
21
endif ()
0 commit comments