aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vtk/afxdll.patch
blob: b528bf47f95e03ad9c52ac2f04043efe44c69ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/GUISupport/MFC/CMakeLists.txt b/GUISupport/MFC/CMakeLists.txt
index 66b52f1f6..7fbfef908 100644
--- a/GUISupport/MFC/CMakeLists.txt
+++ b/GUISupport/MFC/CMakeLists.txt
@@ -10,7 +10,7 @@ endif ()
 # Determine whether the shared or static MFC implementation to use.
 if (use_policy_0091) # XXX(cmake-3.15)
   if (NOT CMAKE_MSVC_RUNTIME_LIBRARY OR # The default uses `DLL`.
-      CMAKE_MSVC_RUNTIME_LIBRARY MATCHES "DLL$")
+      VCPKG_CRT_LINKAGE MATCHES "dynamic")
     set(vtk_mfc_static 0)
   else ()
     set(vtk_mfc_static 1)