cmake: Turn off some overwhelming MSVC warnings.

This commit is contained in:
Ryan C. Gordon 2023-06-30 18:53:48 -04:00
parent a6b4dc36df
commit f0f6d98c75
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -44,6 +44,7 @@ if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
add_definitions(-wd4018) # signed/unsigned mismatch
else() # This assumes you have GCC or Clang at the moment.
add_definitions(-Wall)
if(NOT EMSCRIPTEN AND NOT ANDROID)