All: Set default build type to Release

This commit is contained in:
Jeffrey Pfau 2014-12-06 18:51:26 -08:00
parent 9a2a448710
commit 0b241710f4
2 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,10 @@ include_directories(${CMAKE_SOURCE_DIR}/src/arm)
include_directories(${CMAKE_SOURCE_DIR}/src/gba)
include_directories(${CMAKE_SOURCE_DIR}/src)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type (e.g. Release or Debug)")
endif()
include(GNUInstallDirs)
# Function definitions

View File

@ -55,7 +55,7 @@ Compiling requires using CMake 2.8.11 or newer. To use CMake to build on a Unix-
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake ..
make
make install