cmake: Disable deprecation warnings for old known_hosts API

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-10-16 08:56:46 +02:00
parent d6b6fff7f7
commit a80caec19b
3 changed files with 17 additions and 0 deletions

View File

@@ -14,6 +14,11 @@ set(LIBSSH_CLIENT_TESTS
torture_session
torture_request_env)
if (DEFAULT_C_NO_DEPRECATION_FLAGS)
set_source_files_properties(torture_knownhosts.c
PROPERTIES
COMPILE_FLAGS ${DEFAULT_C_NO_DEPRECATION_FLAGS})
endif()
if (WITH_SFTP)
if (WITH_BENCHMARKS)
set(SFTP_BENCHMARK_TESTS