cmake: build SDL with /W3 on MSVC

The Visual Studio projects also did this.
This commit is contained in:
Anonymous Maarten
2024-08-08 00:25:27 +02:00
committed by Anonymous Maarten
parent 5cd6923298
commit 6e6c2b8e7d
2 changed files with 9 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
if(MSVC)
function(SDL_Preseed_CMakeCache)
set(COMPILER_SUPPORTS_W3 "1" CACHE INTERNAL "Test /W3")
set(COMPILER_SUPPORTS_FDIAGNOSTICS_COLOR_ALWAYS "" CACHE INTERNAL "Test COMPILER_SUPPORTS_FDIAGNOSTICS_COLOR_ALWAYS")
set(HAVE_ALLOCA_H "" CACHE INTERNAL "Have include alloca.h")
set(HAVE_AUDIOCLIENT_H "1" CACHE INTERNAL "Have include audioclient.h")