From 29bac43f5d46fc320054996b017f74fb3c9f3252 Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 10 Aug 2024 08:22:51 -0400 Subject: [PATCH] add bcrypt as windows dependency --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 317ef3a7..2350917b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.4.1) if (WIN32) add_definitions( "-D_GLIBCXX_USE_NANOSLEEP=1" ) # "'sleep_for' is not a member of 'std::this_thread'" in gcc 4.7/4.8 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() @@ -104,7 +104,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() ############