Skip to content

Commit

Permalink
do not touch the prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A committed Mar 6, 2024
1 parent 3cf0b9d commit 95052b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions ports/vtk/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ vcpkg_from_github(
fix-exprtk.patch # just for dbow2 and theia
devendor_exodusII.patch
ot-dep.patch
remove-prefix-changes.patch
)

# =============================================================================
Expand Down
14 changes: 14 additions & 0 deletions ports/vtk/remove-prefix-changes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/CMake/vtk-config.cmake.in b/CMake/vtk-config.cmake.in
index 9f095ba..8cf7ee2 100644
--- a/CMake/vtk-config.cmake.in
+++ b/CMake/vtk-config.cmake.in
@@ -114,8 +114,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/vtk-prefix.cmake")
set("${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH"
"${_vtk_module_import_prefix}")
unset(_vtk_module_import_prefix)
-list(INSERT CMAKE_PREFIX_PATH 0
- "${${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH}")

set("${CMAKE_FIND_PACKAGE_NAME}_VERSION" "@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@.@VTK_BUILD_VERSION@")
set("${CMAKE_FIND_PACKAGE_NAME}_MAJOR_VERSION" "@VTK_MAJOR_VERSION@")

0 comments on commit 95052b8

Please sign in to comment.