Skip to content

Commit

Permalink
Linked with bcrypt.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf committed Oct 1, 2023
1 parent ef1ea89 commit 0b0bfc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.18)
cmake_policy(SET CMP0048 NEW)
project(hdrbg LANGUAGES C VERSION 1.0.0 DESCRIPTION "C implementation of Hash DRBG")
include(GNUInstallDirs)
message(${CMAKE_SYSTEM_NAME})

set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_C_STANDARD 17)
Expand All @@ -20,6 +21,10 @@ if(OPENSSL_FOUND)
target_link_libraries(hdrbg PRIVATE ${OPENSSL_CRYPTO_LIBRARIES})
endif()

if(MINGW OR MSYS)
target_link_libraries(hdrbg PRIVATE -lbcrypt)
endif()

set_target_properties(hdrbg PROPERTIES
PUBLIC_HEADER include/hdrbg.h
SOVERSION 1
Expand Down

0 comments on commit 0b0bfc0

Please sign in to comment.