Skip to content

Commit

Permalink
Fix build failure [full tests]
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Sep 21, 2024
1 parent 9951317 commit 51f263b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 51f263b

Please sign in to comment.