From 2601e6a4ac33cdef7772351cce863b17dbd57088 Mon Sep 17 00:00:00 2001
From: Tobias Winchen <tobias.winchen@rwth-aachen.de>
Date: Fri, 16 Apr 2021 18:58:16 +0000
Subject: [PATCH] Use correct Werror mode for nvcc

---
 cmake/cuda.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/cuda.cmake b/cmake/cuda.cmake
index 61c5b793..39847b71 100644
--- a/cmake/cuda.cmake
+++ b/cmake/cuda.cmake
@@ -15,7 +15,7 @@ if(ENABLE_CUDA)
 
   # Pass options to NVCC ( -ccbin /path  --compiler-options -lfftw3f --compiler-options -lm --verbose)
   list(APPEND CUDA_NVCC_FLAGS -DENABLE_CUDA --std c++${CMAKE_CXX_STANDARD} -Wno-deprecated-gpu-targets --ptxas-options=-v)
-  list(APPEND CUDA_NVCC_FLAGS_DEBUG --debug --generate-line-info  -Xcompiler "-Wextra")  # Do not use Xcompiler -Werror here as it prevents some kernels from execution
+  list(APPEND CUDA_NVCC_FLAGS_DEBUG --debug --generate-line-info  -Xcompiler "-Wextra" --Werror all-warnings )  # Do not use Xcompiler -Werror here as it prevents some kernels from execution
   #list(APPEND CUDA_NVCC_FLAGS_DEBUG --debug --device-debug -Xcompiler "-Wextra" -Xcompiler "-Werror")
   list(APPEND CUDA_NVCC_FLAGS_PROFILE --generate-line-info)
   string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
-- 
GitLab