mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[CMAKE] Default to Debug for the build type in GCC builds.
svn path=/trunk/; revision=67862
This commit is contained in:
parent
233d650aa0
commit
e7a9440fb8
|
@ -46,12 +46,6 @@ endif()
|
||||||
# for more information.
|
# for more information.
|
||||||
string(TOLOWER ${ARCH} ARCH)
|
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
|
# Compile options
|
||||||
if(ARCH STREQUAL "i386")
|
if(ARCH STREQUAL "i386")
|
||||||
include(cmake/config.cmake)
|
include(cmake/config.cmake)
|
||||||
|
|
|
@ -3,6 +3,12 @@ if(NOT ARCH)
|
||||||
set(ARCH i386)
|
set(ARCH i386)
|
||||||
endif()
|
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
|
# Choose the right MinGW toolchain prefix
|
||||||
if (NOT DEFINED MINGW_TOOLCHAIN_PREFIX)
|
if (NOT DEFINED MINGW_TOOLCHAIN_PREFIX)
|
||||||
if(ARCH STREQUAL "i386")
|
if(ARCH STREQUAL "i386")
|
||||||
|
|
Loading…
Reference in a new issue