File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ if(MSVC)
54
54
# Visual Studio specific flags
55
55
target_compile_options (cpputils PRIVATE
56
56
$<$<CONFIG:Debug>:/JMC>
57
- $<$<CONFIG:RelWithDebInfo>:/GS- /O2>
57
+ $<$<OR :$< CONFIG:RelWithDebInfo>,$<CONFIG:Debug> >:/GS- /O2>
58
58
/MP /Zi
59
59
/std:c++latest /permissive- /Zc:__cplusplus /Zc:char8_t
60
60
/W4 /FS /Gy
61
61
)
62
62
target_link_options (cpputils PRIVATE
63
- $<$<CONFIG:RelWithDebInfo>:/OPT:REF /OPT:ICF>
63
+ $<$<OR :$< CONFIG:RelWithDebInfo>,$<CONFIG:Debug> >:/OPT:REF /OPT:ICF>
64
64
$<$<CONFIG:Debug>:/INCREMENTAL>
65
65
/DEBUG:FASTLINK
66
66
)
@@ -83,7 +83,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
83
83
-Wshadow -Wstrict-aliasing -Wstrict-aliasing=3 -Wuninitialized
84
84
-Wunused-const-variable =2 -Wwrite-strings -Wlogical-op
85
85
-Wno-missing-include -dirs -Wno-undef
86
- $<$<CONFIG:RelWithDebInfo>:-O3>
86
+ $<$<OR :$< CONFIG:RelWithDebInfo>,$<CONFIG:Debug> >:-O3>
87
87
)
88
88
target_link_options (cpputils PRIVATE -fuse-ld=gold)
89
89
You can’t perform that action at this time.
0 commit comments