set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Set build type") set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") This could be added to some default startup macro, no?