mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 17:44:48 +09:00
Enable CMake Flag -W3
as New CMP0092 no Longer Does it Implicitly (#97053)
* Add universal `-W3` option to CMakeLists.txt, as the new policy CMP0092 no longer adds it by default, and we use it. * Had not noticed there was already a W3 removal in the compilers' configuration. So no need to add another W3, just remove that removal.
This commit is contained in:
parent
473a983375
commit
15eb4df61f
1 changed files with 0 additions and 3 deletions
|
@ -767,9 +767,6 @@ if (MSVC)
|
|||
# Compile options for targeting windows
|
||||
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/nologo>) # Suppress Startup Banner
|
||||
# /W3 is added by default by CMake, so remove it
|
||||
string(REPLACE "/W3" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
string(REPLACE "/W3" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
||||
|
||||
# [[! Microsoft.Security.SystemsADM.10086 !]] - SDL required warnings
|
||||
# set default warning level to 4 but allow targets to override it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue