cmake: require at least version 3.16 (fixes #705)

This commit is contained in:
Sergiu Deitsch 2021-12-09 17:54:56 +01:00 committed by Sergiu Deitsch
parent 52354b2adc
commit 660352f02b
3 changed files with 9 additions and 17 deletions

View File

@ -1,18 +1,10 @@
cmake_minimum_required (VERSION 3.0) cmake_minimum_required (VERSION 3.16)
project (glog
if (POLICY CMP0042) VERSION 0.6.0
cmake_policy (SET CMP0042 NEW) DESCRIPTION "C++ implementation of the Google logging module"
endif (POLICY CMP0042) HOMEPAGE_URL https://github.com/google/glog
LANGUAGES CXX
if (POLICY CMP0063) )
cmake_policy (SET CMP0063 NEW)
endif (POLICY CMP0063)
if (POLICY CMP0074)
cmake_policy (SET CMP0074 NEW)
endif (POLICY CMP0074)
project(glog VERSION 0.6.0 LANGUAGES CXX)
set (CPACK_PACKAGE_NAME glog) set (CPACK_PACKAGE_NAME glog)
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Google logging library") set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Google logging library")

View File

@ -152,7 +152,7 @@ If you have glog installed in your system, you can use the CMake command
.. code:: cmake .. code:: cmake
cmake_minimum_required (VERSION 3.0.2) cmake_minimum_required (VERSION 3.16)
project (myproj VERSION 1.0) project (myproj VERSION 1.0)
find_package (glog 0.6.0 REQUIRED) find_package (glog 0.6.0 REQUIRED)

View File

@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.0) cmake_minimum_required (VERSION 3.16)
project (glog_package_config LANGUAGES CXX) project (glog_package_config LANGUAGES CXX)
find_package (glog REQUIRED NO_MODULE) find_package (glog REQUIRED NO_MODULE)