Use cache variables.

This commit is contained in:
NAThompson 2019-08-13 17:51:56 -04:00
parent 76ef9d15b2
commit 3a47058cba

@ -88,9 +88,10 @@ vtkm_option(VTKm_ENABLE_MPI "Enable MPI support" OFF)
vtkm_option(VTKm_ENABLE_DOCUMENTATION "Build Doxygen documentation" OFF)
vtkm_option(VTKm_ENABLE_EXAMPLES "Build examples" OFF)
if (NOT DEFINED VTKm_ENABLE_TESTING)
vtkm_option(VTKm_ENABLE_TESTING "Enable VTKm Testing" OFF)
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
set(VTKm_ENABLE_TESTING ON)
vtkm_option(VTKm_ENABLE_TESTING "Enable VTKm Testing" ON)
else()
vtkm_option(VTKm_ENABLE_TESTING "Enable VTKm Testing" OFF)
endif()
endif()