Skip to content

Commit

Permalink
add bcrypt as windows dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Aug 10, 2024
1 parent 7ac3490 commit 60a5209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.4.1)
if (WIN32)
add_definitions( "-D_GLIBCXX_USE_NANOSLEEP=1" )
add_definitions( "-DWIN32_LEAN_AND_MEAN" )
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj -O2 -fPIC -std=c++14 -F/Library/Frameworks -pthread -lcrypto -lcrypt32")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj -O2 -fPIC -std=c++14 -F/Library/Frameworks -pthread -lcrypto -lcrypt32 -lbcrypt")
else()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -std=c++14 -F/Library/Frameworks -pthread")
endif()
Expand Down Expand Up @@ -83,7 +83,7 @@ if(STATIC AND NOT IOS)
endif()

if (WIN32)
list(APPEND OPENSSL_LIBRARIES ws2_32 crypt32)
list(APPEND OPENSSL_LIBRARIES ws2_32 crypt32 bcrypt)
endif()

######################
Expand Down

0 comments on commit 60a5209

Please sign in to comment.