We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e45677 commit 619807eCopy full SHA for 619807e
1 file changed
CMakeLists.txt
@@ -10,8 +10,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
10
11
if (MSVC)
12
add_compile_options(/W4 /wd4244 /wd4245 /wd4267 /wd4100 /wd4200)
13
- add_compile_options($<$<CONFIG:Release>:/O2 /Ot /GL>)
+ add_compile_options($<$<CONFIG:Release>:/O2;/Ot;/GL>)
14
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE)
15
+ add_link_options($<$<CONFIG:Release>:/LTCG>)
16
else()
17
add_compile_options(-Wall -Wextra -Wno-sign-compare -Wno-unused-variable -Wno-unused-parameter)
18
endif()
0 commit comments