aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/luv/fix-msvc-build.patch
diff options
context:
space:
mode:
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)
+