mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
cmake: define a default build type
Lets 'cmake .. && make' be sufficient to build.
This commit is contained in:
parent
e40d982bf6
commit
442adfbfaa
@ -45,6 +45,11 @@ function (die msg)
|
|||||||
message(FATAL_ERROR "${BoldRed}${msg}${ColourReset}")
|
message(FATAL_ERROR "${BoldRed}${msg}${ColourReset}")
|
||||||
endfunction ()
|
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
|
# ARCH defines the target architecture, either by an explicit identifier or
|
||||||
# one of the following two keywords. By default, ARCH a value of 'native':
|
# 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
|
# target arch = host arch, binary is not portable. When ARCH is set to the
|
||||||
|
Loading…
Reference in New Issue
Block a user