diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/vtk/afxdll.patch | |
Diffstat (limited to 'vcpkg/ports/vtk/afxdll.patch')
| -rw-r--r-- | vcpkg/ports/vtk/afxdll.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/vtk/afxdll.patch b/vcpkg/ports/vtk/afxdll.patch new file mode 100644 index 0000000..b528bf4 --- /dev/null +++ b/vcpkg/ports/vtk/afxdll.patch @@ -0,0 +1,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)
|