diff options
-rw-r--r-- | cmake/WindowsSupport.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/WindowsSupport.cmake b/cmake/WindowsSupport.cmake index 93c13094..8d489294 100644 --- a/cmake/WindowsSupport.cmake +++ b/cmake/WindowsSupport.cmake @@ -26,6 +26,10 @@ # Debug postfix if(MSVC) set(CMAKE_DEBUG_POSTFIX "d") +# disable deprecation warnings + add_compile_definitions(_CRT_SECURE_NO_WARNINGS) +# suppress deprecation warning for MSVC POSIX names + add_compile_definitions(_CRT_NONSTDC_NO_WARNINGS) endif() # Win32 file I/O |