aboutsummaryrefslogtreecommitdiff
path: root/CompilerChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-10-16 08:56:46 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-16 08:56:46 +0200
commita80caec19bf0f82de3cbb85f378c925663ffa648 (patch)
treea951695a31ccd061712e750c6b640985d7e03356 /CompilerChecks.cmake
parentd6b6fff7f723d9f7b3ad8a9bf5b7e8dbd5f22b8f (diff)
downloadlibssh-a80caec19bf0f82de3cbb85f378c925663ffa648.tar.gz
libssh-a80caec19bf0f82de3cbb85f378c925663ffa648.tar.xz
libssh-a80caec19bf0f82de3cbb85f378c925663ffa648.zip
cmake: Disable deprecation warnings for old known_hosts API
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'CompilerChecks.cmake')
-rw-r--r--CompilerChecks.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/CompilerChecks.cmake b/CompilerChecks.cmake
index 3b36cc6c..8112fce7 100644
--- a/CompilerChecks.cmake
+++ b/CompilerChecks.cmake
@@ -93,6 +93,8 @@ if (UNIX)
add_c_compiler_flag("-Wno-error=tautological-compare" SUPPORTED_COMPILER_FLAGS)
endif()
+ add_c_compiler_flag("-Wno-deprecated-declarations" DEPRECATION_COMPILER_FLAGS)
+
# Unset CMAKE_REQUIRED_FLAGS
unset(CMAKE_REQUIRED_FLAGS)
endif()
@@ -112,3 +114,7 @@ endif()
set(DEFAULT_C_COMPILE_FLAGS ${SUPPORTED_COMPILER_FLAGS} CACHE INTERNAL "Default C Compiler Flags" FORCE)
set(DEFAULT_LINK_FLAGS ${SUPPORTED_LINKER_FLAGS} CACHE INTERNAL "Default C Linker Flags" FORCE)
+
+if (DEPRECATION_COMPILER_FLAGS)
+ set(DEFAULT_C_NO_DEPRECATION_FLAGS ${DEPRECATION_COMPILER_FLAGS} CACHE INTERNAL "Default no deprecation flags" FORCE)
+endif()