vcpkg/ports/vtk/module-name-mangling.patch

19 lines
806 B
Diff
Raw Normal View History

--- a/CMake/vtkModule.cmake
+++ b/CMake/vtkModule.cmake
@@ -4409,6 +4409,15 @@ endif ()\n\n")
foreach (_vtk_export_module IN LISTS _vtk_export_MODULES)
get_property(_vtk_export_target_name GLOBAL
PROPERTY "_vtk_module_${_vtk_export_module}_target_name")
+ # Use the export name of the target if it has one set.
+ get_property(_vtk_export_target_has_export_name
+ TARGET "${_vtk_export_target_name}"
+ PROPERTY EXPORT_NAME SET)
+ if (_vtk_export_target_has_export_name)
+ get_property(_vtk_export_target_name
+ TARGET "${_vtk_export_target_name}"
+ PROPERTY EXPORT_NAME)
+ endif ()
set(_vtk_export_base "_vtk_module_find_package_${_vtk_export_module}")
get_property(_vtk_export_packages GLOBAL
PROPERTY "${_vtk_export_base}")