You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMake Error at ports/vtk/portfile.cmake:201 (file):
file failed to open for reading (No such file or directory):
C:/Users/Ross Taylor/Q/vcpkg/packages/vtk_x64-windows-release/share/vtk/VTK-targets-debug.cmake
Additional context
If only release is built there is no VTK-targets-debug.cmake file generated so the code that tries to modify it fails. A simple fix is to verify the file is there (in portfile.cmake line 199):
# we also have to bend the lines referencing the tools in VTKTargets-debug.cmake
# to make them point to the release version of the tools
set(filename ${CURRENT_PACKAGES_DIR}/share/vtk/VTK-targets-debug.cmake)
if(EXISTS ${filename})
file(READ "${CURRENT_PACKAGES_DIR}/share/vtk/VTK-targets-debug.cmake" VTK_TARGETS_CONTENT_DEBUG)
string(REPLACE "debug/bin/${TOOL_NAME}" "tools/vtk/${TOOL_NAME}" VTK_TARGETS_CONTENT_DEBUG "${VTK_TARGETS_CONTENT_DEBUG}")
string(REPLACE "tools/vtk/${TOOL_NAME}d" "tools/vtk/${TOOL_NAME}" VTK_TARGETS_CONTENT_DEBUG "${VTK_TARGETS_CONTENT_DEBUG}")
file(WRITE "${CURRENT_PACKAGES_DIR}/share/vtk/VTK-targets-debug.cmake" "${VTK_TARGETS_CONTENT_DEBUG}")
endif()
The text was updated successfully, but these errors were encountered:
Host Environment
To Reproduce
Steps to reproduce the behavior:
In PowerShell:
Failure logs
Additional context
If only release is built there is no VTK-targets-debug.cmake file generated so the code that tries to modify it fails. A simple fix is to verify the file is there (in portfile.cmake line 199):
The text was updated successfully, but these errors were encountered: