Skip to content

Commit

Permalink
cmake: require at least version 3.16 (fixes #705)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Dec 9, 2021
1 parent 52354b2 commit 910133f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
22 changes: 7 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
cmake_minimum_required (VERSION 3.0)

if (POLICY CMP0042)
cmake_policy (SET CMP0042 NEW)
endif (POLICY CMP0042)

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)
cmake_minimum_required (VERSION 3.16)
project (glog
VERSION 0.6.0
DESCRIPTION "C++ implementation of the Google logging module"
HOMEPAGE_URL https://github.com/google/glog
LANGUAGES CXX
)

set (CPACK_PACKAGE_NAME glog)
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Google logging library")
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ If you have glog installed in your system, you can use the CMake command

.. code:: cmake
cmake_minimum_required (VERSION 3.0.2)
cmake_minimum_required (VERSION 3.16)
project (myproj VERSION 1.0)
find_package (glog 0.6.0 REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion src/package_config_unittest/working_config/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.0)
cmake_minimum_required (VERSION 3.16)
project (glog_package_config LANGUAGES CXX)

find_package (glog REQUIRED NO_MODULE)
Expand Down

0 comments on commit 910133f

Please sign in to comment.