Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit 660352f

Browse files
committed
cmake: require at least version 3.16 (fixes #705)
1 parent 52354b2 commit 660352f

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

CMakeLists.txt

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
cmake_minimum_required (VERSION 3.0)
2-
3-
if (POLICY CMP0042)
4-
cmake_policy (SET CMP0042 NEW)
5-
endif (POLICY CMP0042)
6-
7-
if (POLICY CMP0063)
8-
cmake_policy (SET CMP0063 NEW)
9-
endif (POLICY CMP0063)
10-
11-
if (POLICY CMP0074)
12-
cmake_policy (SET CMP0074 NEW)
13-
endif (POLICY CMP0074)
14-
15-
project(glog VERSION 0.6.0 LANGUAGES CXX)
1+
cmake_minimum_required (VERSION 3.16)
2+
project (glog
3+
VERSION 0.6.0
4+
DESCRIPTION "C++ implementation of the Google logging module"
5+
HOMEPAGE_URL https://github.com/google/glog
6+
LANGUAGES CXX
7+
)
168

179
set (CPACK_PACKAGE_NAME glog)
1810
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Google logging library")

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ If you have glog installed in your system, you can use the CMake command
152152

153153
.. code:: cmake
154154
155-
cmake_minimum_required (VERSION 3.0.2)
155+
cmake_minimum_required (VERSION 3.16)
156156
project (myproj VERSION 1.0)
157157
158158
find_package (glog 0.6.0 REQUIRED)

src/package_config_unittest/working_config/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required (VERSION 3.0)
1+
cmake_minimum_required (VERSION 3.16)
22
project (glog_package_config LANGUAGES CXX)
33

44
find_package (glog REQUIRED NO_MODULE)

0 commit comments

Comments
 (0)