diff options
| author | Nikolay Shishov <nshishov@users.noreply.github.com> | 2019-09-25 20:55:43 +0300 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-09-25 10:55:43 -0700 |
| commit | 39104b476135716e6304cb3ba316499720589449 (patch) | |
| tree | ba6b46f2ae76b27f46f5424f3f9f36d79a09c233 | |
| parent | 59b8e3cdb2e7f4b185f132bb6baeed3e0de9ad22 (diff) | |
| download | vcpkg-39104b476135716e6304cb3ba316499720589449.tar.gz vcpkg-39104b476135716e6304cb3ba316499720589449.zip | |
[libevent] crt linkage fix (#8211)
* [libevent] crt linkage fix
| -rw-r--r-- | ports/libevent/fix-crt_linkage.patch | 13 | ||||
| -rw-r--r-- | ports/libevent/portfile.cmake | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ports/libevent/fix-crt_linkage.patch b/ports/libevent/fix-crt_linkage.patch new file mode 100644 index 000000000..b766b4556 --- /dev/null +++ b/ports/libevent/fix-crt_linkage.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bf333f3..5bc2a54 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -230,7 +230,7 @@ endif() + + if (${MSVC}) + set(msvc_static_runtime OFF) +- if ("${EVENT_LIBRARY_TYPE}" STREQUAL "STATIC") ++ if ("${VCPKG_CRT_LINKAGE}" STREQUAL "STATIC") + set(msvc_static_runtime ON) + endif() + diff --git a/ports/libevent/portfile.cmake b/ports/libevent/portfile.cmake index 91c915b92..1ce0ab450 100644 --- a/ports/libevent/portfile.cmake +++ b/ports/libevent/portfile.cmake @@ -11,6 +11,7 @@ vcpkg_from_github( SHA512 a34ca4ad4d55a989a4f485f929d0ed2438d070d0e12a19d90c2b12783a562419c64db6a2603b093d958a75246d14ffefc8730c69c90b1b2f48339bde947f0e02 PATCHES fix-file_path.patch + fix-crt_linkage.patch ) if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") @@ -25,6 +26,7 @@ vcpkg_configure_cmake( OPTIONS -DEVENT_INSTALL_CMAKE_DIR:PATH=share/libevent -DEVENT__LIBRARY_TYPE=${LIBEVENT_LIB_TYPE} + -DVCPKG_CRT_LINKAGE=${VCPKG_CRT_LINKAGE} -DEVENT__DISABLE_BENCHMARK=ON -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_REGRESS=ON |
