diff --git a/CMake/VTKmConfigureComponents.cmake b/CMake/VTKmConfigureComponents.cmake index 0fcde7344..334ed96e7 100644 --- a/CMake/VTKmConfigureComponents.cmake +++ b/CMake/VTKmConfigureComponents.cmake @@ -223,7 +223,11 @@ macro(vtkm_configure_component_CUDA) if(VTKm_CUDA_FOUND) #--------------------------------------------------------------------------- - # Setup build flags for CUDA + # Setup build flags for CUDA to have C++11 support + #--------------------------------------------------------------------------- + + list(APPEND CUDA_NVCC_FLAGS --std c++11) + #--------------------------------------------------------------------------- # Populates CUDA_NVCC_FLAGS with the best set of flags to compile for a # given GPU architecture. The majority of developers should leave the