From e7a9440fb89e84f40398bdc8581b4c9ea1212de7 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 23 May 2015 11:45:59 +0000 Subject: [PATCH] [CMAKE] Default to Debug for the build type in GCC builds. svn path=/trunk/; revision=67862 --- reactos/CMakeLists.txt | 6 ------ reactos/toolchain-gcc.cmake | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/CMakeLists.txt b/reactos/CMakeLists.txt index 86b006abbe1..446945875b8 100644 --- a/reactos/CMakeLists.txt +++ b/reactos/CMakeLists.txt @@ -46,12 +46,6 @@ endif() # for more information. string(TOLOWER ${ARCH} ARCH) -# Default to Debug for the build type -if(NOT 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() - # Compile options if(ARCH STREQUAL "i386") include(cmake/config.cmake) diff --git a/reactos/toolchain-gcc.cmake b/reactos/toolchain-gcc.cmake index ba61c834a21..cc1b25aa3ab 100644 --- a/reactos/toolchain-gcc.cmake +++ b/reactos/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") -- 2.17.1