Missing VTK::RenderingExternal Module on Windows
- OS: Windows 10
- CMake: 3.16.0
- Ninja: 1.10.0
- Compiler: MSVC 19.27.29112 for x64
- VTK: 9.0 commit a7f58c74 (HEAD -> master, origin/master, origin/HEAD)
I get the following error when building an application trying to include the VTK::RenderingExternal module on Windows.
CMake Error at C:/code/vtk/build-64bit/lib/cmake/vtk-9.0/vtkModule.cmake:1135 (message):
Failed to determine the real target for the `VTK::RenderingExternal`
module. Is a `find_package` missing a required component?
Call Stack (most recent call first):
C:/code/vtk/build-64bit/lib/cmake/vtk-9.0/vtkModule.cmake:2914 (_vtk_module_real_target)
vtk_plot_testing/CMakeLists.txt:28 (vtk_module_autoinit)
My cmake is below
# I'll fix this to use some package manager later
set(VTK_DIR "${CMAKE_SOURCE_DIR}/../vtk/build-64bit/lib/cmake/vtk-9.0")
find_package(VTK 9.0 REQUIRED)
# ...
vtk_module_autoinit(
TARGETS vtk_plot_testing
MODULES VTK::ChartsCore
VTK::RenderingOpenGL2
VTK::RenderingExternal
VTK::InfovisCore
VTK::ViewsInfovis
VTK::ViewsContext2D)
target_link_libraries(
vtk_plot_testing
PRIVATE
# ...
VTK::ChartsCore
VTK::RenderingOpenGL2
VTK::RenderingExternal
VTK::InfovisCore
VTK::ViewsInfovis
VTK::ViewsContext2D
# ...
)
I don't see any references to VTK::RenderingExternal
in VTK-vtk-module-properties.cmake
. I do see the vtk.module
file at vtk/Rendering/External/vtk.module
.
I'm not sure how to debug further. Maybe, @ben.boeckel?
Thanks for your support and great library!
Edited by Josh Huels