Make a CMake build debug by default 2023-11-14 Add this to your CMakeLists.txt: if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) endif()