mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
cmake: Fix building the ssh_server_fuzzer
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
@@ -2,6 +2,10 @@ project(fuzzing CXX)
|
|||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
add_executable(ssh_server_fuzzer ssh_server_fuzzer.cpp)
|
add_executable(ssh_server_fuzzer ssh_server_fuzzer.cpp)
|
||||||
|
target_link_libraries(ssh_server_fuzzer
|
||||||
|
PRIVATE
|
||||||
|
${LIBSSH_STATIC_LIBRARY}
|
||||||
|
${LIBSSH_LINK_LIBRARIES})
|
||||||
set_target_properties(ssh_server_fuzzer
|
set_target_properties(ssh_server_fuzzer
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
COMPILE_FLAGS "-fsanitize=fuzzer"
|
COMPILE_FLAGS "-fsanitize=fuzzer"
|
||||||
|
|||||||
Reference in New Issue
Block a user