Skip to content

Commit 3543ee7

Browse files
committed
CMakeLists.txt
1 parent dd7523d commit 3543ee7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ if(MSVC)
5454
# Visual Studio specific flags
5555
target_compile_options(cpputils PRIVATE
5656
$<$<CONFIG:Debug>:/JMC>
57-
$<$<CONFIG:RelWithDebInfo>:/GS- /O2>
57+
$<$<OR:$<CONFIG:RelWithDebInfo>,$<CONFIG:Debug>>:/GS- /O2>
5858
/MP /Zi
5959
/std:c++latest /permissive- /Zc:__cplusplus /Zc:char8_t
6060
/W4 /FS /Gy
6161
)
6262
target_link_options(cpputils PRIVATE
63-
$<$<CONFIG:RelWithDebInfo>:/OPT:REF /OPT:ICF>
63+
$<$<OR:$<CONFIG:RelWithDebInfo>,$<CONFIG:Debug>>:/OPT:REF /OPT:ICF>
6464
$<$<CONFIG:Debug>:/INCREMENTAL>
6565
/DEBUG:FASTLINK
6666
)
@@ -83,7 +83,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
8383
-Wshadow -Wstrict-aliasing -Wstrict-aliasing=3 -Wuninitialized
8484
-Wunused-const-variable=2 -Wwrite-strings -Wlogical-op
8585
-Wno-missing-include-dirs -Wno-undef
86-
$<$<CONFIG:RelWithDebInfo>:-O3>
86+
$<$<OR:$<CONFIG:RelWithDebInfo>,$<CONFIG:Debug>>:-O3>
8787
)
8888
target_link_options(cpputils PRIVATE -fuse-ld=gold)
8989

0 commit comments

Comments
 (0)