mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
cmake: Rename static library
This is only compiled for tests and fuzzers! Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
@@ -18,7 +18,7 @@ include_directories(
|
||||
|
||||
set(TORTURE_LINK_LIBRARIES
|
||||
${CMOCKA_LIBRARY}
|
||||
${LIBSSH_STATIC_LIBRARY})
|
||||
ssh::static)
|
||||
|
||||
# create test library
|
||||
add_library(${TORTURE_LIBRARY}
|
||||
|
||||
@@ -4,7 +4,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_executable(ssh_client_fuzzer ssh_client_fuzzer.cpp)
|
||||
target_link_libraries(ssh_client_fuzzer
|
||||
PRIVATE
|
||||
${LIBSSH_STATIC_LIBRARY})
|
||||
ssh::static)
|
||||
set_target_properties(ssh_client_fuzzer
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS "-fsanitize=fuzzer"
|
||||
@@ -14,7 +14,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_executable(ssh_server_fuzzer ssh_server_fuzzer.cpp)
|
||||
target_link_libraries(ssh_server_fuzzer
|
||||
PRIVATE
|
||||
${LIBSSH_STATIC_LIBRARY})
|
||||
ssh::static)
|
||||
set_target_properties(ssh_server_fuzzer
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS "-fsanitize=fuzzer"
|
||||
|
||||
@@ -20,7 +20,7 @@ set(pkd_hello_src
|
||||
|
||||
set(pkd_libs
|
||||
${CMOCKA_LIBRARY}
|
||||
${LIBSSH_STATIC_LIBRARY}
|
||||
ssh::static
|
||||
${ARGP_LIBRARIES}
|
||||
pthread
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user