Skip to content

Commit

Permalink
fix(ci): Add bcrypt library for windows
Browse files Browse the repository at this point in the history
(cherry picked from commit 5849f46)
  • Loading branch information
keba-estr authored and NoelGraf committed Sep 16, 2024
1 parent f4cf1c7 commit 4800b6e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,12 @@ if(UA_ENABLE_ENCRYPTION_OPENSSL OR UA_ENABLE_MQTT_TLS_OPENSSL)
# use the OpenSSL encryption library
# https://cmake.org/cmake/help/v3.0/module/FindOpenSSL.html
find_package(OpenSSL REQUIRED)
list(APPEND open62541_LIBRARIES ${OPENSSL_LIBRARIES})
endif ()
list(APPEND open62541_LIBRARIES "${OPENSSL_LIBRARIES}")
if(WIN32)
# Add bestcrypt for windows systems
list(APPEND open62541_LIBRARIES bcrypt)
endif()
endif()

if(UA_ENABLE_ENCRYPTION_LIBRESSL)
# See https://github.com/libressl-portable/portable/blob/master/FindLibreSSL.cmake
Expand All @@ -624,6 +628,10 @@ if(UA_ENABLE_ENCRYPTION_MBEDTLS OR UA_ENABLE_PUBSUB_ENCRYPTION)
# defined in /tools/cmake/FindMbedTLS.cmake.
find_package(MbedTLS REQUIRED)
list(APPEND open62541_LIBRARIES ${MBEDTLS_LIBRARIES})
if(WIN32)
# Add bestcrypt for windows systems
list(APPEND open62541_LIBRARIES bcrypt)
endif()
endif()

if(UA_ENABLE_TPM2_SECURITY)
Expand Down

0 comments on commit 4800b6e

Please sign in to comment.