Require at least CMake 3.9.
This commit is contained in:
parent
bd60a4970d
commit
6ff101370e
|
@ -1,6 +1,6 @@
|
||||||
# Support version 3.6 and above, but use policy settings up to 3.14.
|
# Support version 3.9 and above, but use policy settings up to 3.14.
|
||||||
# 3.6 is needed because of IMPORTED_TARGET in pkg_check_modules().
|
# 3.9 is needed for project description.
|
||||||
cmake_minimum_required(VERSION 3.6...3.14)
|
cmake_minimum_required(VERSION 3.9...3.14)
|
||||||
# Ranges are supported from 3.12, set policy to current for < 3.12.
|
# Ranges are supported from 3.12, set policy to current for < 3.12.
|
||||||
if(${CMAKE_VERSION} VERSION_LESS 3.12)
|
if(${CMAKE_VERSION} VERSION_LESS 3.12)
|
||||||
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
|
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
|
||||||
|
@ -8,12 +8,8 @@ endif()
|
||||||
|
|
||||||
project(remwharead
|
project(remwharead
|
||||||
VERSION 0.8.5
|
VERSION 0.8.5
|
||||||
|
DESCRIPTION "Saves URIs of things you want to remember in a database."
|
||||||
LANGUAGES CXX)
|
LANGUAGES CXX)
|
||||||
# DESCRIPTION was introduced in version 3.9.
|
|
||||||
if(NOT (${CMAKE_VERSION} VERSION_LESS 3.9))
|
|
||||||
set(PROJECT_DESCRIPTION
|
|
||||||
"Saves URIs of things you want to remember in a database.")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ only.
|
||||||
|
|
||||||
* Tested OS: Linux
|
* Tested OS: Linux
|
||||||
* C++ compiler (tested: {uri-gcc}[gcc] 7/8/9, {uri-clang}[clang] 6/7)
|
* C++ compiler (tested: {uri-gcc}[gcc] 7/8/9, {uri-clang}[clang] 6/7)
|
||||||
* {uri-cmake}[cmake] (at least: 3.6)
|
* {uri-cmake}[cmake] (at least: 3.9)
|
||||||
* {uri-poco}[POCO] (tested: 1.9 / 1.7)
|
* {uri-poco}[POCO] (tested: 1.9 / 1.7)
|
||||||
* Optional:
|
* Optional:
|
||||||
** Manpage: {uri-asciidoc}[asciidoc] (tested: 8.6)
|
** Manpage: {uri-asciidoc}[asciidoc] (tested: 8.6)
|
||||||
|
|
|
@ -3,8 +3,7 @@ set(CPACK_PACKAGE_VERSION_MAJOR ${${PROJECT_NAME}_VERSION_MAJOR})
|
||||||
set(CPACK_PACKAGE_VERSION_MINOR ${${PROJECT_NAME}_VERSION_MINOR})
|
set(CPACK_PACKAGE_VERSION_MINOR ${${PROJECT_NAME}_VERSION_MINOR})
|
||||||
set(CPACK_PACKAGE_VERSION_PATCH ${${PROJECT_NAME}_VERSION_PATCH})
|
set(CPACK_PACKAGE_VERSION_PATCH ${${PROJECT_NAME}_VERSION_PATCH})
|
||||||
set(CPACK_PACKAGE_VERSION ${${PROJECT_NAME}_VERSION})
|
set(CPACK_PACKAGE_VERSION ${${PROJECT_NAME}_VERSION})
|
||||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${PROJECT_DESCRIPTION})
|
||||||
"Saves URIs of things you want to remember in a database. ")
|
|
||||||
set(CPACK_PACKAGE_CONTACT "tastytea <tastytea@tastytea.de>")
|
set(CPACK_PACKAGE_CONTACT "tastytea <tastytea@tastytea.de>")
|
||||||
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
|
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
|
||||||
set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README.adoc")
|
set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README.adoc")
|
||||||
|
|
Loading…
Reference in New Issue