summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-12-01 13:50:51 +0000
committerEven Rouault <even.rouault@spatialys.com>2021-12-01 13:50:51 +0000
commit35bc092078d2c328b1049fdfadba604ee5343f37 (patch)
tree826087ec203ca409db729e289851fe4340b17813
parent73dbd42c57aec1ef00b14735d34f35692e66063c (diff)
parent33562f3e4983f5289527d0f73cda41bbf586921a (diff)
downloadlibtiff-git-35bc092078d2c328b1049fdfadba604ee5343f37.tar.gz
Merge branch 'VisualStudio_warnings_suppress' into 'master'
Suppress unnecessary warnings in Visual Studio in AppVeyor test. See merge request libtiff/libtiff!234
-rw-r--r--cmake/WindowsSupport.cmake4
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