diff --git a/CMakeLists.txt b/CMakeLists.txt index 57a774b2f22..e1b7b5d5b3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -318,7 +318,7 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${PYTHON_INSTDIR}/espressomd") # drop 'lib' prefix from all libraries set(CMAKE_SHARED_LIBRARY_PREFIX "") -set(CMAKE_CXX_FLAGS_CODECOV "-O0 -g") +set(CMAKE_CXX_FLAGS_CODECOV "-Og -g") if(WARNINGS_ARE_ERRORS) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") endif(WARNINGS_ARE_ERRORS) diff --git a/cmake/FindCUDACompilerClang.cmake b/cmake/FindCUDACompilerClang.cmake index 3f98625c97b..7eae57e2803 100644 --- a/cmake/FindCUDACompilerClang.cmake +++ b/cmake/FindCUDACompilerClang.cmake @@ -52,7 +52,7 @@ if(CUDA_VERSION VERSION_LESS ${MINIMAL_CUDA_VERSION}) message(FATAL_ERROR "${CMAKE_CUDA_COMPILER} was built for CUDA ${CUDA_VERSION}: version does not match requirements (CUDA ${MINIMAL_CUDA_VERSION}).") endif() -set(CUDA_NVCC_FLAGS_DEBUG "${CUDA_NVCC_FLAGS_DEBUG} -O0 -g") +set(CUDA_NVCC_FLAGS_DEBUG "${CUDA_NVCC_FLAGS_DEBUG} -Og -g") set(CUDA_NVCC_FLAGS_RELEASE "${CUDA_NVCC_FLAGS_RELEASE} -O3 -DNDEBUG") set(CUDA_NVCC_FLAGS_MINSIZEREL "${CUDA_NVCC_FLAGS_MINSIZEREL} -O2 -DNDEBUG") set(CUDA_NVCC_FLAGS_RELWITHDEBINFO "${CUDA_NVCC_FLAGS_RELWITHDEBINFO} -O2 -g -DNDEBUG") diff --git a/cmake/FindCUDACompilerNVCC.cmake b/cmake/FindCUDACompilerNVCC.cmake index 0ee70463853..a7aa23345c3 100644 --- a/cmake/FindCUDACompilerNVCC.cmake +++ b/cmake/FindCUDACompilerNVCC.cmake @@ -43,7 +43,7 @@ set(CUDA_LINK_LIBRARIES_KEYWORD PUBLIC) SET(CUDA_PROPAGATE_HOST_FLAGS OFF) -set(CUDA_NVCC_FLAGS_DEBUG "${CUDA_NVCC_FLAGS_DEBUG} -O0 -Xptxas -O0 -Xcompiler -O0 -G -g -Xptxas -g -Xcompiler -g") +set(CUDA_NVCC_FLAGS_DEBUG "${CUDA_NVCC_FLAGS_DEBUG} -O3 -Xptxas -O3 -Xcompiler -Og -g -Xcompiler -g") set(CUDA_NVCC_FLAGS_RELEASE "${CUDA_NVCC_FLAGS_RELEASE} -O3 -Xptxas -O3 -Xcompiler -O3 -DNDEBUG") set(CUDA_NVCC_FLAGS_MINSIZEREL "${CUDA_NVCC_FLAGS_MINSIZEREL} -O2 -Xptxas -O2 -Xcompiler -Os -DNDEBUG") set(CUDA_NVCC_FLAGS_RELWITHDEBINFO "${CUDA_NVCC_FLAGS_RELWITHDEBINFO} -O2 -Xptxas -O2 -Xcompiler -O2 -g -Xcompiler -g -DNDEBUG")