CMake: require 3.16
This is just prep-work: from here, we can re-work FindBoost usage and the FindPython things as well.
This commit is contained in:
parent
72701aae21
commit
8ab1a4fb30
@ -38,15 +38,24 @@
|
||||
# One special target is "show-version", which can be built
|
||||
# to obtain the version number from here.
|
||||
|
||||
# TODO:3.3: Require CMake 3.12
|
||||
cmake_minimum_required( VERSION 3.3 FATAL_ERROR )
|
||||
cmake_minimum_required( VERSION 3.16 FATAL_ERROR )
|
||||
|
||||
set( CALAMARES_VERSION 3.3.0 )
|
||||
set( CALAMARES_RELEASE_MODE OFF ) # Set to ON during a release
|
||||
|
||||
if ( CMAKE_SCRIPT_MODE_FILE )
|
||||
include( ${CMAKE_CURRENT_LIST_DIR}/CMakeModules/ExtendedVersion.cmake )
|
||||
set( CMAKE_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} )
|
||||
extend_version( ${CALAMARES_VERSION} OFF _vshort _vlong )
|
||||
message( "${_vlong}" )
|
||||
return()
|
||||
endif()
|
||||
|
||||
project( CALAMARES
|
||||
VERSION 3.2.43
|
||||
VERSION ${CALAMARES_VERSION}
|
||||
LANGUAGES C CXX
|
||||
)
|
||||
|
||||
set( CALAMARES_VERSION_RC 1 ) # Set to 0 during release cycle, 1 during development
|
||||
|
||||
### OPTIONS
|
||||
#
|
||||
option( INSTALL_CONFIG "Install configuration files" OFF )
|
||||
|
Loading…
Reference in New Issue
Block a user