aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/luv/fix-msvc-build.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/luv/fix-msvc-build.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/luv/fix-msvc-build.patch')
-rw-r--r--vcpkg/ports/luv/fix-msvc-build.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/luv/fix-msvc-build.patch b/vcpkg/ports/luv/fix-msvc-build.patch
new file mode 100644
index 0000000..cdf37b4
--- /dev/null
+++ b/vcpkg/ports/luv/fix-msvc-build.patch
@@ -0,0 +1,26 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e63a431..aa46c07 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -25,20 +25,6 @@ if (MINGW)
+ add_definitions(-D_WIN32_WINNT=0x0600)
+ endif (MINGW)
+
+-if (WIN32)
+- # replace /MD to /MT to avoid link msvcr*.dll
+- # this needs to be before add_subdirectory calls so that they inherit the modified flags
+- set(CompilerFlags
+- CMAKE_C_FLAGS
+- CMAKE_C_FLAGS_DEBUG
+- CMAKE_C_FLAGS_MINSIZEREL
+- CMAKE_C_FLAGS_RELWITHDEBINFO
+- CMAKE_C_FLAGS_RELEASE)
+- foreach(CompilerFlag ${CompilerFlags})
+- string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
+- endforeach()
+-endif ()
+-
+ if (NOT WITH_LUA_ENGINE)
+ set(WITH_LUA_ENGINE "LuaJIT"
+ CACHE STRING "Link to LuaJIT or PUC Lua" FORCE)
+