mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
Use cache variables.
This commit is contained in:
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user