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 3bed814 commit 49e9269Copy full SHA for 49e9269
CMakeLists.txt
@@ -12,9 +12,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
12
# Additional warnings and errors
13
if(MSVC)
14
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
15
- set(EXTRA_COMPILE_FLAGS_CXX "/W4")
+ add_compile_options("/W4")
16
else()
17
- set(EXTRA_COMPILE_FLAGS_CXX "-Wall -Wextra -Wno-register -Werror=vla")
+ add_compile_options("-Wall -Wextra -Wno-register -Werror=vla")
18
endif()
19
20
option(USE_OPENMP "flag to use OpenMP for multithreading" ON)
0 commit comments