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 30eb5ce commit 8a5e792Copy full SHA for 8a5e792
example/CMakeLists.txt
@@ -10,9 +10,9 @@ set(EXAMPLES
10
add_definitions(-D_GLIBCXX_USE_CXX11_ABI)
11
set_property(DIRECTORY PROPERTY COMPILE_OPTIONS ${EXTRA_CXX_FLAGS})
12
13
-if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
14
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra ")
15
-else()
+elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
16
add_definitions(
17
-D_SCL_SECURE_NO_WARNINGS
18
-D_CRT_SECURE_NO_WARNINGS
0 commit comments