aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/luv/fix-msvc-build.patch
blob: cdf37b44e218124ea7403b846c3e66b00105f4b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)