aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-11 15:36:37 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-11 15:36:37 +0200
commit011ab7c8fe741a6d82640754782e633dafcc92bd (patch)
tree19ae0e9bf3946776633e52361c63d1bc511cf4d6 /cmake/Modules
parente4422d6605c1d6e915c7b20cd3b000f4600fbe18 (diff)
downloadlibssh-011ab7c8fe741a6d82640754782e633dafcc92bd.tar.gz
libssh-011ab7c8fe741a6d82640754782e633dafcc92bd.tar.xz
libssh-011ab7c8fe741a6d82640754782e633dafcc92bd.zip
Suppress warning about "deprecated" functions in MSVC.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/DefineCompilerFlags.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake
index 90bfbaf3..97ece25d 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -48,3 +48,8 @@ if (UNIX AND NOT WIN32)
endif (WITH_FORTIFY_SOURCE)
endif (CMAKE_COMPILER_IS_GNUCC)
endif (UNIX AND NOT WIN32)
+
+# suppress warning about "deprecated" functions
+if(MSVC)
+add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+endif(MSVC)