cmake: Improve compiler flag detection

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-08-20 15:17:09 +02:00
parent 26a4097742
commit a9a99fb31f
8 changed files with 139 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ endif (WITH_SFTP)
foreach(_CLI_TEST ${LIBSSH_CLIENT_TESTS})
add_cmocka_test(${_CLI_TEST} ${_CLI_TEST}.c ${TORTURE_LIBRARY})
target_compile_options(${_CLI_TEST} PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
if (OSX)
set_property(