1
1
libssh/tests/fuzz/CMakeLists.txt
Andreas Schneider 6026fc8036 cmake: Fix libfuzzer linking with clang6
This is always available using -fsanitize=fuzzer now.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-04-10 11:13:57 +02:00

14 строки
415 B
CMake

project(fuzzing CXX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_executable(ssh_server_fuzzer ssh_server_fuzzer.cpp)
set_target_properties(ssh_server_fuzzer
PROPERTIES
COMPILE_FLAGS "-fsanitize=fuzzer"
LINK_FLAGS "-fsanitize=fuzzer")
target_link_libraries(ssh_server_fuzzer
${LIBSSH_THREADS_STATIC_LIBRARY}
${LIBSSH_THREADS_LINK_LIBRARIES})
endif()