enable C++11 for nvcc

This commit is contained in:
psychocrypt
2017-10-01 00:02:24 +02:00
parent 42cc3c3a95
commit 8fd095e97a
+1 -1
View File
@@ -112,7 +112,7 @@ if(CUDA_ENABLE)
elseif("${CUDA_COMPILER}" STREQUAL "nvcc")
# add c++11 for cuda
if(NOT "${CMAKE_CXX_FLAGS}" MATCHES "-std=c\\+\\+11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -std=c++11")
endif()
# avoid that nvcc in CUDA < 8 tries to use libc `memcpy` within the kernel