Commit b5df54d4 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

ParaViewTesting: only check for client existence if it is used

The PythonCatalyst module uses the API in a different way than is
generally used, so it doesn't use `__paraview_client__` and instead just
provides the command line as intended automatically.
parent 36cfa118
......@@ -48,7 +48,8 @@ function (_paraview_add_tests function)
endif ()
if (NOT DEFINED _paraview_add_tests_CLIENT)
if (NOT TARGET ParaView::paraview # For external testing.
if ("__paraview_client__" IN_LIST _paraview_add_tests__COMMAND_PATTERN # do we care?
AND NOT TARGET ParaView::paraview # For external testing.
AND NOT paraview_will_be_built) # For use within ParaView itself.
return ()
endif ()
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