Skip to content

Commit 433cf6f

Browse files
AlexyPellegrinijcfr
authored andcommitted
fix(test): skip non-module/OpenXR components during resolution
1 parent 35934af commit 433cf6f

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

tests/packages/find_package/CMakeLists.txt

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,30 @@ project(${SKBUILD_PROJECT_NAME} VERSION ${SKBUILD_PROJECT_VERSION})
55
find_package(Python COMPONENTS Interpreter Development.Module)
66

77
set(expected_version "9.5.0")
8-
find_package(VTK ${expected_version} REQUIRED)
8+
find_package(VTK ${expected_version})
9+
10+
set(skipped_components
11+
# Not VTK modules, from
12+
# https://gitlab.kitware.com/vtk/vtk/-/blob/master/CMake/vtkInstallCMakePackage.cmake#L19
13+
WrapHierarchy
14+
vtkbuild
15+
vtkplatform
16+
vtkpython
17+
pvtkpython
18+
WrapPython
19+
WrapPythonInit
20+
vtkjava
21+
ParseJava
22+
WrapJava
23+
vtkWebAssemblyTestLinkOptions
24+
# Public dependency to OpenXR loader
25+
RenderingOpenXR
26+
RenderingOpenXRRemoting)
27+
foreach(comp IN LISTS VTK_AVAILABLE_COMPONENTS)
28+
if("${skipped_components}" MATCHES "${comp}")
29+
continue()
30+
endif()
31+
if(NOT VTK_${comp}_FOUND)
32+
message(SEND_ERROR "Expected VTK component \"${comp}\" could not be found!")
33+
endif()
34+
endforeach()

0 commit comments

Comments
 (0)