aboutsummaryrefslogtreecommitdiff
path: root/ports/xeus/Fix-static-build.patch
blob: 4caf0138f2a5f822a05b96cc2059dd46d5e0df97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d02b5d6..6484131 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -244,7 +244,10 @@ macro(xeus_create_target target_name linkage output_name)
         PUBLIC xtl
     )
 
-    target_link_libraries(${target_name} PUBLIC OpenSSL::Crypto)
+	if (MSVC)
+	    target_link_libraries(OpenSSL::Crypto INTERFACE crypt32)
+    endif ()
+	target_link_libraries(${target_name} PUBLIC OpenSSL::Crypto)
 
     if (NOT MSVC)
         if (APPLE)