Make CMake Debug by Default Published: 2023-11-14 CMakecpp Add this to your CMakeLists.txt: if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) endif()