X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=toolchain-gcc.cmake;h=cc1b25aa3abd519fe5e8cd495d9d1b61fd985fe6;hp=ba61c834a21b74b6b04862077755c1e917bdfbc0;hb=246005c6250f906f693224c0da5a366b3009d338;hpb=9919d4fa10282fdba6bcb4816c7e893d73c449c7 diff --git a/toolchain-gcc.cmake b/toolchain-gcc.cmake index ba61c834a21..cc1b25aa3ab 100644 --- a/toolchain-gcc.cmake +++ b/toolchain-gcc.cmake @@ -3,6 +3,12 @@ if(NOT ARCH) set(ARCH i386) endif() +# Default to Debug for the build type +if(NOT DEFINED CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Debug" CACHE STRING + "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.") +endif() + # Choose the right MinGW toolchain prefix if (NOT DEFINED MINGW_TOOLCHAIN_PREFIX) if(ARCH STREQUAL "i386")