fix compilation with OPENSSL_LIBRARY=0

This commit is contained in:
Timur A. Fatkhullin
2024-12-12 21:34:12 +03:00
parent 4e133de5b2
commit e4fd86a6d4
2 changed files with 6 additions and 3 deletions

View File

@@ -172,7 +172,9 @@ if (BUILD_TESTS)
set(NETSERVICE_TEST_APP adc_netservice_test)
add_executable(${NETSERVICE_TEST_APP} tests/adc_netservice_test.cpp)
target_link_libraries(${NETSERVICE_TEST_APP} OpenSSL::SSL OpenSSL::Crypto)
if (OPENSSL_LIBRARY)
target_link_libraries(${NETSERVICE_TEST_APP} OpenSSL::SSL OpenSSL::Crypto)
endif()
if (ASIO_LIBRARY)
find_package(cxxopts CONFIG)