X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=toolchain-msvc.cmake;h=e0f2b2b8b3543cd9388baeb785c261880cf8fa09;hp=cf675a5a975e6a342c359d4259d0e78b0d5f21c5;hb=3ad5c7fd84bdcce26db5f46a2afd4c7a972c7700;hpb=4fc224434a25e663728a53b3ba7415f40406a5ea diff --git a/toolchain-msvc.cmake b/toolchain-msvc.cmake index cf675a5a975..e0f2b2b8b35 100644 --- a/toolchain-msvc.cmake +++ b/toolchain-msvc.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() + # the name of the target operating system set(CMAKE_SYSTEM_NAME Windows) set(CMAKE_SYSTEM_PROCESSOR i686)