From 51f263bc1dc80c0f4843a3fb9642ddd988f2d076 Mon Sep 17 00:00:00 2001 From: Songling Han Date: Sat, 21 Sep 2024 16:23:48 +0000 Subject: [PATCH] Fix build failure [full tests] Signed-off-by: Songling Han --- tests/CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 97761b9d8..cc5f373b5 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -30,12 +30,11 @@ if(NOT WIN32) endif() # List oqs-internal after oqs so that oqs has linking precedence. -find_package(OpenSSL REQUIRED) - -if(NOT OpenSSL_FOUND) - set(TEST_DEPS oqs oqs-internal ${LIBM}) -else() +if(${OQS_USE_OPENSSL}) + find_package(OpenSSL 1.1.1 REQUIRED) set(TEST_DEPS oqs oqs-internal ${LIBM} OpenSSL::Crypto) +else() + set(TEST_DEPS oqs oqs-internal ${LIBM}) endif() if(OQS_USE_PTHREADS)