diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cd9b1e93c9..3f9c248e03 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -169,6 +169,12 @@ else() $<$:-Wno-unused-parameter> $<$:-Wno-missing-field-initializers>) + if (MSVC) + add_compile_options( + $<$:-Wno-c99-compat> + $<$:-Wno-c98-compat>) + endif() + if (CXX_CLANG OR CXX_ICC OR CXX_APPLE) # Clang, AppleClang, or Intel C++ if (NOT MSVC) add_compile_options(