vtkm_option should be used as it properly handles CMP0077

Without using vtkm_option, you will run into CMP0077 which
means "option() won't honor normal variables".
This commit is contained in:
Robert Maynard 2020-04-01 08:52:07 -04:00
parent ac55c0e551
commit 5061d43f5a

@ -194,7 +194,7 @@ set(sources
vtkm_get_kit_name(kit_name kit_dir)
# Some custom types included with VTK-m
option(VTKm_USE_DEFAULT_TYPES_FOR_VTK "Compile VTK-m algorithms for use with types from VTK." OFF)
vtkm_option(VTKm_USE_DEFAULT_TYPES_FOR_VTK "Compile VTK-m algorithms for use with types from VTK." OFF)
if (VTKm_USE_DEFAULT_TYPES_FOR_VTK)
set(VTKm_DEFAULT_TYPES_HEADER "internal/DefaultTypesVTK.h.in")
endif()