Skip to content

Commit

Permalink
link libcrypto for 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 20, 2024
1 parent fb99350 commit 8b7221a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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}")
Expand Down

0 comments on commit 8b7221a

Please sign in to comment.