Avoid requiring OpenSSL package in CMake find module

as it is only required for unit tests
This commit is contained in:
Martchus 2022-04-03 23:20:43 +02:00
parent ff86df8e25
commit a5830319b1
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ use_standard_filesystem()
include(3rdParty)
# zlib
use_zlib()
use_crypto(LIBRARIES_VARIABLE "TEST_LIBRARIES" OPTIONAL)
use_crypto(LIBRARIES_VARIABLE "TEST_LIBRARIES" PACKAGES_VARIABLE "TEST_PACKAGES" OPTIONAL)
if (NOT "OpenSSL::Crypto" IN_LIST "TEST_LIBRARIES")
list(REMOVE_ITEM TEST_SRC_FILES tests/testfilecheck.cpp)
message(WARNING "Unable to check testfile integrity because OpenSSL is not available.")