diff --git a/CMakeLists.txt b/CMakeLists.txt index b97052f4d570e1b108b0107df78a90b69bc9f060..90049a6d58c36f1503505c357db28c48c6b6c5d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1090,6 +1090,11 @@ if ( WALBERLA_BUILD_WITH_CUDA ) list ( APPEND CUDA_NVCC_FLAGS "-std=c++14" ) endif () + if(CMAKE_BUILD_TYPE MATCHES Debug) + list ( APPEND CUDA_NVCC_FLAGS "-g -G" ) + endif() + + # Bug with gcc5 and cuda7.5: #list( APPEND CUDA_NVCC_FLAGS "-D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__")