CMake: Repress deprecation warnings with MSVC.
authorRay Molenkamp <github@lazydodo.com>
Tue, 25 Sep 2018 17:05:01 +0000 (11:05 -0600)
committerRay Molenkamp <github@lazydodo.com>
Tue, 25 Sep 2018 17:05:35 +0000 (11:05 -0600)
CMakeLists.txt

index 91a79af..c51558d 100644 (file)
@@ -1518,6 +1518,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC")
                "/wd4305"  # truncation from 'type1' to 'type2'
                "/wd4800"  # forcing value to bool 'true' or 'false'
                "/wd4828"  # The file contains a character that is illegal
+               "/wd4996"  # identifier was declared deprecated
                # errors:
                "/we4013"  # 'function' undefined; assuming extern returning int
                "/we4133"  # incompatible pointer types