vcpkg/ports/xeus/Fix-static-build.patch
Lily bfc0f48833
[libyaml/sqlpp11/xeus/uvatlas/xxhash] Update to the latest version (#13657)
* [many ports] Update to the latest version

* [xeus] Fix static build

* [usd] Revert change

* [xeus] Fix build error

* [sqlpp11] Update latest version

* [libyaml] Fix build error on Linux

* [sqlpp11] Fix build error
2020-09-27 17:33:19 -07:00

17 lines
484 B
Diff

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)