diff options
| author | Albert Ziegenhagel <albert.ziegenhagel@outlook.com> | 2017-08-10 17:05:43 +0200 |
|---|---|---|
| committer | Albert Ziegenhagel <albert.ziegenhagel@outlook.com> | 2017-08-10 17:05:43 +0200 |
| commit | dffe4793b8f8a11687a7e6eb9cfef8a866a39479 (patch) | |
| tree | 858e58fce2bf9af7ff20c29de087c057919e9e42 | |
| parent | 6d73c73b21c3be9a4c0b1ab4cca2622abb094362 (diff) | |
| download | vcpkg-dffe4793b8f8a11687a7e6eb9cfef8a866a39479.tar.gz vcpkg-dffe4793b8f8a11687a7e6eb9cfef8a866a39479.zip | |
[vtk] Fix remaining references to release libraries from debug version of VTK
| -rw-r--r-- | ports/vtk/portfile.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ports/vtk/portfile.cmake b/ports/vtk/portfile.cmake index bf6022f35..ed5a5a6ce 100644 --- a/ports/vtk/portfile.cmake +++ b/ports/vtk/portfile.cmake @@ -149,7 +149,15 @@ foreach(MODULE IN LISTS SYSTEM_THIRD_PARTY_MODULES) _vtk_combine_third_party_libraries("${MODULE}") endforeach() - +# Remove all explicit references to vcpkg system libraries in the general VTKTargets.cmake file +# since these references always point to the release libraries, even in the debug case. +# The dependencies should be handled by the explicit modules we fixed above, so removing +# them here shouldn't cause any problems. +file(READ "${CURRENT_PACKAGES_DIR}/share/vtk/VTKTargets.cmake" VTK_TARGETS_CONTENT) +string(REGEX REPLACE "${CURRENT_INSTALLED_DIR}/lib/[^\\.]*\\.lib" "" VTK_TARGETS_CONTENT "${VTK_TARGETS_CONTENT}") +file(WRITE "${CURRENT_PACKAGES_DIR}/share/vtk/VTKTargets.cmake" "${VTK_TARGETS_CONTENT}") + +# Move executable to tools directory file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/vtk) file(RENAME ${CURRENT_PACKAGES_DIR}/bin/vtkEncodeString-8.0.exe ${CURRENT_PACKAGES_DIR}/tools/vtk/vtkEncodeString-8.0.exe) file(RENAME ${CURRENT_PACKAGES_DIR}/bin/vtkHashSource-8.0.exe ${CURRENT_PACKAGES_DIR}/tools/vtk/vtkHashSource-8.0.exe) |
