From 8b7221a356b27accf2799d18b977eb9f1f5d1233 Mon Sep 17 00:00:00 2001 From: Songling Han Date: Fri, 20 Sep 2024 07:32:37 +0000 Subject: [PATCH] link libcrypto for tests Signed-off-by: Songling Han --- tests/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0f3d9c901..6d00c6587 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -23,6 +23,7 @@ endif() if(OQS_USE_OPENSSL) include_directories(${OPENSSL_INCLUDE_DIR}) + set(TEST_DEPS ${TEST_DEPS} OpenSSL::Crypto) endif() if(NOT WIN32) @@ -35,10 +36,6 @@ if(OQS_USE_PTHREADS) set(TEST_DEPS ${TEST_DEPS} Threads::Threads) endif() -# Link OpenSSL libcrypto -find_package(OpenSSL REQUIRED) -set(TEST_DEPS ${TEST_DEPS} OpenSSL::Crypto) - if(NOT WIN32) execute_process(COMMAND ${PROJECT_SOURCE_DIR}/scripts/git_commit.sh OUTPUT_VARIABLE GIT_COMMIT) add_definitions(-DOQS_COMPILE_GIT_COMMIT="${GIT_COMMIT}")