Require CMake 3.12.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-10-27 12:06:37 +01:00
parent c0eb7494e1
commit 0bcad56590
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 4 additions and 13 deletions

View File

@ -1,20 +1,11 @@
# Support version 3.6 and above, but use policy settings up to 3.17.
cmake_minimum_required(VERSION 3.6...3.17)
# Ranges are supported from 3.12, set policy to current for < 3.12.
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
# IMPORTED target CURL::libcurl needs 3.12.
cmake_minimum_required(VERSION 3.12...3.17)
project(gitea2rss
VERSION 0.5.2
DESCRIPTION "Generates RSS feeds from Gitea releases or tags."
LANGUAGES CXX)
# DESCRIPTION was introduced in version 3.9.
if(NOT (${CMAKE_VERSION} VERSION_LESS 3.9))
set(PROJECT_DESCRIPTION
"Generates RSS feeds from Gitea releases or tags.")
endif()
option(WITH_MAN "Compile and install manpage." YES)
option(WITH_TESTS "Compile tests." NO)

View File

@ -31,7 +31,7 @@ emerge -a dev-util/gitea2rss
* Tested OS: Linux
* C++ compiler (tested: https://gcc.gnu.org/[gcc] 8/9,
https://llvm.org/[clang] 7)
* https://cmake.org/[cmake] (at least: 3.6)
* https://cmake.org/[cmake] (at least: 3.12)
* https://curl.haxx.se/libcurl/[libcurl] (at least: 7.56)
* https://github.com/open-source-parsers/jsoncpp[jsoncpp] (tested: 1.8)
* Optional: