Skip to content
Snippets Groups Projects
Commit 237070fe authored by GITLAB-RUNNER03\runner's avatar GITLAB-RUNNER03\runner
Browse files

Sue CUDA C++17 standard.

parent 54b86584
No related branches found
No related tags found
1 merge request!56Clean up Configuration File mess. Closes #18
......@@ -86,13 +86,8 @@ if(BUILD_VF_GPU)
message(FATAL_ERROR "CUDA Compiler was requested but is not found on the system.")
endif()
if(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 set the standard to 11 here.
set(CMAKE_CUDA_STANDARD 11)
else()
set(CMAKE_CUDA_STANDARD 14)
endif()
set(CMAKE_CUDA_STANDARD 17)
set(CMAKE_CUDA_STANDARD_REQUIRED TRUE)
......
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