From 0b241710f443040201b0f0464f069b43adb4bff6 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 6 Dec 2014 18:51:26 -0800 Subject: [PATCH] All: Set default build type to Release --- CMakeLists.txt | 4 ++++ README.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b33a7ed24..d2137aa0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/README.md b/README.md index eeed331b7..b671ee79d 100644 --- a/README.md +++ b/README.md @@ -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