From eb4e5a0a573a4851fe3d10acb997665b52a35eb8 Mon Sep 17 00:00:00 2001 From: Per Nilsson Date: Wed, 2 Nov 2022 10:24:05 +0100 Subject: [PATCH] Remove bcrypt from linkage on Windows --- lib/CMakeLists.txt | 2 +- yubihsm-auth/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 0d3cbe2c0..ac6202450 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -61,7 +61,7 @@ if(WIN32) set(USB_LIBRARY winusb ws2_32 setupapi) if(${WIN32_BCRYPT}) - set (CRYPT_LIBRARY bcrypt ncrypt) + set (CRYPT_LIBRARY ncrypt) add_definitions (-D_WIN32_BCRYPT) else(${WIN32_BCRYPT}) set(CRYPT_LIBRARY ${LIBCRYPTO_LDFLAGS}) diff --git a/yubihsm-auth/CMakeLists.txt b/yubihsm-auth/CMakeLists.txt index af99981af..247af7bf9 100644 --- a/yubihsm-auth/CMakeLists.txt +++ b/yubihsm-auth/CMakeLists.txt @@ -45,7 +45,7 @@ include_directories ( if(WIN32) list(APPEND SOURCE ${CMAKE_CURRENT_BINARY_DIR}/version.rc) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.rc.in ${CMAKE_CURRENT_BINARY_DIR}/version.rc @ONLY) - set (BCRYPT_LIBRARY bcrypt ncrypt) + set (BCRYPT_LIBRARY ncrypt) endif(WIN32) # NOTE(adma): required by gengetopt