From 696ca48bd1ec52d6b569368fe93c3d9e67f27c6f Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Mon, 29 Aug 2016 14:26:26 -0400 Subject: [PATCH] Make sure CUDA is built with c++11 support enabled. --- CMake/VTKmConfigureComponents.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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