Skip to content
Snippets Groups Projects
Commit f5f9caf5 authored by Soeren Peters's avatar Soeren Peters
Browse files

Set the CUDA_CXX_STANDARD to 14, when we are not on msvc. Descripting why is in the comment.

parent f46d57cc
No related branches found
No related tags found
1 merge request!27Remove GPU compiler warnings (Closes #4, #12)
......@@ -103,8 +103,12 @@ if(BUILD_VF_GPU)
message(FATAL_ERROR "CUDA Compiler was requested but is not found on the system.")
endif()
set(CMAKE_CUDA_STANDARD 11)
set(CMAKE_CUDA_STANDARD_REQUIRED TRUE)
if(NOT MSVC)
# With the MSVC compiler we got this warning: nvcc : The -std=c++14 flag is not supported with the configured host compiler. Flag will be ignored.
# But we build the c++ code with C++14. Until we have not a solution here, we are not setting this on MSVC.
set(CMAKE_CUDA_STANDARD 14)
set(CMAKE_CUDA_STANDARD_REQUIRED TRUE)
endif()
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcudafe --display_error_number")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment