diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb7e64b0eb9cc9e39baa149250640fe6a0a3761f..329554d4c953ac6c3afe26cc4b7c76bb6fe022fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,7 @@
 cmake_minimum_required(VERSION 3.20)
 project(Detection_eddies LANGUAGES Fortran)
-set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release Profile)
+set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release Profile
+  RelWithDebInfo)
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
 find_package(NetCDF_Fortran REQUIRED)
 find_package(MPI)