build: build Release with Debug Info by default

We want builds to be fast out of the box, so this option will build a
Release binary using a default cmake configuation.
This commit is contained in:
Mike Ryan 2017-02-14 20:24:37 -08:00 committed by Tyler J. Stachecki
parent d68d612d48
commit 11ed7acfab

View file

@ -222,6 +222,12 @@ option(DEBUG_MMIO_REGISTER_ACCESS "Print message on each MMIO register access?"
# Use VR4300's busy-wait-detection feature?
option(VR4300_BUSY_WAIT_DETECTION "Detect and special case VR4300 busy wait loops?" ON)
# Build RelWithDebInfo by default so builds are fast out of the box
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif(NOT CMAKE_BUILD_TYPE)
# Glob all the files together.
include_directories(${PROJECT_BINARY_DIR})
include_directories(${PROJECT_SOURCE_DIR})