aboutsummaryrefslogtreecommitdiff
path: root/ports/vtk
diff options
context:
space:
mode:
Diffstat (limited to 'ports/vtk')
-rw-r--r--ports/vtk/FindExpat.patch13
-rw-r--r--ports/vtk/portfile.cmake1
2 files changed, 14 insertions, 0 deletions
diff --git a/ports/vtk/FindExpat.patch b/ports/vtk/FindExpat.patch
new file mode 100644
index 000000000..a0e706b44
--- /dev/null
+++ b/ports/vtk/FindExpat.patch
@@ -0,0 +1,13 @@
+diff --git a/CMake/FindEXPAT.cmake b/CMake/FindEXPAT.cmake
+index 9d4c080..9e14e7d 100644
+--- a/CMake/FindEXPAT.cmake
++++ b/CMake/FindEXPAT.cmake
+@@ -40,7 +40,7 @@ pkg_check_modules(PC_EXPAT QUIET expat)
+ find_path(EXPAT_INCLUDE_DIR NAMES expat.h HINTS ${PC_EXPAT_INCLUDE_DIRS})
+
+ # Look for the library.
+-find_library(EXPAT_LIBRARY NAMES expat libexpat HINTS ${PC_EXPAT_LIBRARY_DIRS})
++find_library(EXPAT_LIBRARY NAMES expat libexpat libexpatMD HINTS ${PC_EXPAT_LIBRARY_DIRS})
+
+ if (EXPAT_INCLUDE_DIR AND EXISTS "${EXPAT_INCLUDE_DIR}/expat.h")
+ file(STRINGS "${EXPAT_INCLUDE_DIR}/expat.h" expat_version_str
diff --git a/ports/vtk/portfile.cmake b/ports/vtk/portfile.cmake
index 089dc11b6..d657f241f 100644
--- a/ports/vtk/portfile.cmake
+++ b/ports/vtk/portfile.cmake
@@ -120,6 +120,7 @@ vcpkg_from_github(
python_debug.patch
fix-using-hdf5.patch
# Last patch TODO: Patch out internal loguru
+ FindExpat.patch
)
# =============================================================================