aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-05-15 13:17:31 +0000
committerSaturneric <[email protected]>2022-05-15 13:17:31 +0000
commitbfcbfeeaba40bf147c96cbee923b97d0ef689e16 (patch)
tree14bb60bc21eb1363e4872208bc7fa64b9952ab6c
parentfix(ci): solve issues in macOS ci (diff)
downloadGpgFrontend-bfcbfeeaba40bf147c96cbee923b97d0ef689e16.tar.gz
GpgFrontend-bfcbfeeaba40bf147c96cbee923b97d0ef689e16.zip
fix: need to link bcrypt in mingw for uuid
-rw-r--r--src/core/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index ee0e39a1..c69c325d 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -80,6 +80,10 @@ target_link_libraries(gpgfrontend_core PUBLIC gpgme assuan gpg-error)
target_link_libraries(gpgfrontend_core PUBLIC OpenSSL::SSL OpenSSL::Crypto)
# link boost libraries
target_link_libraries(gpgfrontend_core PUBLIC ${Boost_LIBRARIES})
+if(MINGW)
+ # for uuid ability in mingw
+ target_link_libraries(gpgfrontend_core PUBLIC bcrypt)
+endif()
# link libarchive
target_link_libraries(gpgfrontend_core PRIVATE archive)