1
0
Fork 0
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:
Ivan Diaz Sanchez 2024-01-17 15:21:24 -08:00 committed by GitHub
parent 473a983375
commit 15eb4df61f
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -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.