vcpkg/ports/libevent/fix-crt_linkage.patch

14 lines
350 B
Diff
Raw Normal View History

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()