We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0aea1ba + d30e4d2 commit 86c27afCopy full SHA for 86c27af
benchmarks/automatic/CMakeLists.txt
@@ -30,6 +30,11 @@ if (ENABLE_OPTIMIZATIONS)
30
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
31
target_compile_options(benchmarks PRIVATE -DTBB_ENABLE_IPO=off -march=native -mavx2 -O3 -ffast-math)
32
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
33
- target_compile_options(benchmarks PRIVATE /O2 /fp:fast)
+ target_compile_options(benchmarks PRIVATE
34
+ $<$<CONFIG:Debug>:/Od /Zi /D_DEBUG>
35
+ )
36
37
+ $<$<CONFIG:Release>: /O2 /fp:fast>
38
39
endif()
40
0 commit comments