Skip to content

Commit

Permalink
Include directories and libraries given to compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf committed Oct 1, 2023
1 parent 7b6c0cb commit 0a10e4f
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 @@ -14,8 +14,10 @@ target_include_directories(hdrbg PRIVATE include)
configure_file(hdrbg.pc.in hdrbg.pc @ONLY)

find_package(OpenSSL 3.0.0)
if(OpenSSL_FOUND)
if(OPENSSL_FOUND)
target_compile_definitions(hdrbg PRIVATE TFPF_HASH_DRBG_OPENSSL_FOUND=1)
target_include_directories(hdrbg PRIVATE ${OPENSSL_INCLUDE_DIR})
target_link_libraries(hdrbg PRIVATE ${OPENSSL_CRYPTO_LIBRARIES})
endif()

set_target_properties(hdrbg PROPERTIES
Expand Down

0 comments on commit 0a10e4f

Please sign in to comment.