Packaging with an installed version of VTK

Previously in Plus, we built VTK and set VTK_DIR to the binary directory. In order to reduce the command length for rc.exe (due to the large number of additional include directories), we decided to install VTK and then set VTK_DIR to the installed CMake directory instead (…/vtk-install/lib/cmake/vtk-8.2). Same thing with ITK.

Packaging worked fine with the previous approach, but with the installed VTK, it fails:

------ Build started: Project: PACKAGE, Configuration: Release x64 ------
CPack: Create package using ZIP
CPack: Install projects
CPack: - Install project: PlusApp
CPack: - Install project: PlusLib
CPack: - Install project: PlusLib
CPack: - Install project: PlusLib
CPack: - Install project: VTK
EXEC : CPack error : Error when generating package: PlusApp

Running CPack with --verbose does not add any additional output in the VTK package step.

You can view the CPackConfig.cmake here: (https://github.com/PlusToolkit/PlusApp/blob/master/CPackConfig.cmake)

We’re using VTK 8.2.0 and CMake 3.14.3.
If anyone has any idea of what the problem could be, it would be greatly appreciated.

Thanks in advance!

Hmm. Without more information, not much seems wrong with a quick glance at the CPackConfig.cmake file. Is there a cpack-related log anywhere in the tree?