Commit d53b0fc6 authored by Ben Boeckel's avatar Ben Boeckel

cmake: handle unrecognized remote modules

These modules do not exist if remote modules are never enabled, so are
unrecognized. Remove them from the list of unrecognized modules later.
parent 923cc9d0
Pipeline #142995 failed with stage
......@@ -305,6 +305,7 @@ mark_as_advanced(PARAVIEW_USE_EXTERNAL)
set(paraview_requested_modules)
set(paraview_rejected_modules)
set(paraview_known_remote_modules)
macro (paraview_select_modules condition)
if (${condition})
......@@ -408,6 +409,9 @@ paraview_select_modules("PARAVIEW_ENABLE_MOMENTINVARIANTS AND PARAVIEW_USE_MPI"
if (PARAVIEW_ENABLE_MOMENTINVARIANTS)
set(use_vtk_remote_modules ON)
endif ()
list(APPEND paraview_known_remote_modules
VTK::MomentInvariants
VTK::ParallelMomentInvariants)
paraview_select_modules("PARAVIEW_ENABLE_VISITBRIDGE"
ParaView::IOVisItBridge
......@@ -721,6 +725,8 @@ else ()
ENABLE_TESTS "${vtk_enable_tests}"
HIDE_MODULES_FROM_CACHE ON)
list(REMOVE_ITEM vtk_unrecognized_modules
${paraview_known_remote_modules})
if (vtk_required_modules OR vtk_unrecognized_modules)
message(FATAL_ERROR
"The following modules were requested or required, but not found: "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment