Skip to content

Commit

Permalink
Allow overriding OPENSSL_MODULES_PATH from the command line (#607)
Browse files Browse the repository at this point in the history
Signed-off-by: Ayoub Zaki <[email protected]>
  • Loading branch information
embetrix authored Jan 2, 2025
1 parent d5dca7e commit 76029a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ cmake_path(GET OPENSSL_CRYPTO_LIBRARY PARENT_PATH OQS_MODULES_PARENT_PATH)
cmake_path(APPEND OQS_MODULES_PARENT_PATH "ossl-modules" OUTPUT_VARIABLE OPENSSL_MODULES_PATH)
else()
get_filename_component(OPENSSL_LIB_DIR ${OPENSSL_CRYPTO_LIBRARY} DIRECTORY)
set(OPENSSL_MODULES_PATH ${OPENSSL_LIB_DIR}/ossl-modules)
if(NOT DEFINED OPENSSL_MODULES_PATH)
set(OPENSSL_MODULES_PATH ${OPENSSL_LIB_DIR}/ossl-modules CACHE PATH "Path to OpenSSL modules")
endif()
endif()

# Add required include for liboqs
Expand Down

0 comments on commit 76029a7

Please sign in to comment.