Commit 7bfc1271 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

pass Wextra + Werror option to nvcc

parent 76ee568d
......@@ -15,7 +15,8 @@ if(ENABLE_CUDA)
add_definitions(-DENABLE_CUDA)
# Pass options to NVCC ( -ccbin /path --compiler-options -lfftw3f --compiler-options -lm --verbose)
list(APPEND CUDA_NVCC_FLAGS -DENABLE_CUDA --std c++11 -Wno-deprecated-gpu-targets)
list(APPEND CUDA_NVCC_FLAGS_DEBUG --debug; --device-debug; --generate-line-info -Xcompiler "-Werror")
list(APPEND CUDA_NVCC_FLAGS_DEBUG --debug --device-debug --generate-line-info -Xcompiler "-Wextra" -Xcompiler "-Werror")
#list(APPEND CUDA_NVCC_FLAGS_DEBUG --debug --device-debug --generate-line-info -Xcompiler "-pedantic")
#list(APPEND CUDA_NVCC_FLAGS -arch compute_35) # minumum compute level (Sps restriction)
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
if(NOT uppercase_CMAKE_BUILD_TYPE MATCHES "DEBUG")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment