X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=toolchain-gcc.cmake;h=cc1b25aa3abd519fe5e8cd495d9d1b61fd985fe6;hp=ba61c834a21b74b6b04862077755c1e917bdfbc0;hb=1ad27c73becab91a764484122df2a7e0b3d22c33;hpb=db5b0c31c400543001fe648a996bbcc5e56b7f63 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")