Author: akhaldi Date: Sat May 23 11:45:59 2015 New Revision: 67862
URL: http://svn.reactos.org/svn/reactos?rev=67862&view=rev Log: [CMAKE] Default to Debug for the build type in GCC builds.
Modified: trunk/reactos/CMakeLists.txt trunk/reactos/toolchain-gcc.cmake
Modified: trunk/reactos/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/CMakeLists.txt?rev=67862&am... ============================================================================== --- trunk/reactos/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/CMakeLists.txt [iso-8859-1] Sat May 23 11:45:59 2015 @@ -45,12 +45,6 @@ # See http://cmake.3232098.n2.nabble.com/Case-insensitive-string-compare-td7580269... # 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")
Modified: trunk/reactos/toolchain-gcc.cmake URL: http://svn.reactos.org/svn/reactos/trunk/reactos/toolchain-gcc.cmake?rev=678... ============================================================================== --- trunk/reactos/toolchain-gcc.cmake [iso-8859-1] (original) +++ trunk/reactos/toolchain-gcc.cmake [iso-8859-1] Sat May 23 11:45:59 2015 @@ -1,6 +1,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