Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Sep 22, 2024
1 parent fe3cf42 commit 09cb543
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 09cb543

Please sign in to comment.