diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-08-29 01:40:53 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-08-29 01:40:53 +0200 |
commit | 16e9dbc3f83207e21b51a986b67ee4e3d9e34d07 (patch) | |
tree | 2bc6f9a992b652f466d1da0d9a7eb0d16490e2d1 | |
parent | Merge pull request #1000 (diff) | |
parent | cmake: define a default build type (diff) | |
download | monero-16e9dbc3f83207e21b51a986b67ee4e3d9e34d07.tar.xz |
Merge pull request #998
442adfb cmake: define a default build type (redfish)
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b382264b..ff1590860 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,11 @@ function (die msg) message(FATAL_ERROR "${BoldRed}${msg}${ColourReset}") endfunction () +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE) + message(STATUS "Setting default build type: ${CMAKE_BUILD_TYPE}") +endif() + # ARCH defines the target architecture, either by an explicit identifier or # one of the following two keywords. By default, ARCH a value of 'native': # target arch = host arch, binary is not portable. When ARCH is set to the |