diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2993a79aede3327290c0e3827219e33b23c2d38b..81f276fffccc981e8b2a979dcf3ff73878fa5f15 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@ if ("${CMAKE_C_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUA
             -Wall
             -Werror
             -O3
+            -g
             -D_GNU_SOURCE
             -DHAVE_INLINE
             -DGSL_C99_INLINE