cmake: unset launcers if testing is disabled

This commit is contained in:
Ben Boeckel 2020-04-02 12:45:45 -04:00
parent 6cda22710e
commit eadc9b8f31

@ -167,9 +167,6 @@ if (NOT data STREQUAL "\n")
"Testing is enabled, but the data is not available. Use git lfs in order "
" to obtain the testing data.")
set(VTKm_ENABLE_TESTING off)
if (CTEST_USE_LAUNCHERS)
set(CTEST_USE_LAUNCHERS off)
endif()
endif()
# We include the wrappers unconditionally as VTK-m expects the function to
@ -340,6 +337,8 @@ if (VTKm_ENABLE_TESTING)
# installed version of VTK-m.
include(testing/VTKmTestInstall)
vtkm_test_install()
else ()
set(CTEST_USE_LAUNCHERS off)
endif()
#-----------------------------------------------------------------------------