Skip to content

Commit e95c5c6

Browse files
committed
(build) Adding policies and cmake min version set to 3.12
(cherry picked from commit a1ebfe5)
1 parent 525fa2e commit e95c5c6

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
22

33
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
44
message(FATAL_ERROR "In-source builds not allowed.
55
Please make a new directory (called a build directory) and run CMake from there.
66
You may need to remove CMakeCache.txt." )
77
endif()
88

9+
if(POLICY CMP0144)
10+
cmake_policy(SET CMP0144 OLD)
11+
endif()
12+
13+
if(POLICY CMP0167)
14+
cmake_policy(SET CMP0167 OLD)
15+
endif()
16+
17+
cmake_policy(SET CMP0148 OLD)
18+
919
#---------------------------------------------
1020
# Setting kind of build
1121
#---------------------------------------------

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ To see all issues & pull requests closed by this release see the [Git closed
2929
milestone for 3.7.2
3030
](https://github.com/pgRouting/pgrouting/issues?utf8=%E2%9C%93&q=milestone%3A%22Release%203.7.2%22)
3131

32+
**Build**
33+
34+
* [#2713](https://github.com/pgRouting/pgrouting/pull/2713) cmake missing
35+
some policies and min version
36+
37+
- Using OLD policies: CMP0148, CMP0144, CMP0167
38+
- Minimum cmake version 3.12
39+
3240
**Bug fixes**
3341

3442
* [#2707](https://github.com/pgRouting/pgrouting/pull/2707) Build failure in

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The latest documentation: https://docs.pgrouting.org/latest
5858
* Postgresql = Supported [version](https://www.postgresql.org/support/versioning/) by PostgreSQL
5959
* Not supporting v12 & under
6060
* The Boost Graph Library (BGL) >= 1.56
61-
* CMake >= 3.2
61+
* CMake >= 3.12
6262
* 7.0 > Sphinx >= 4.0.0
6363

6464
### User's requirements

doc/src/release_notes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ To see all issues & pull requests closed by this release see the `Git closed
6969
milestone for 3.7.2
7070
<https://github.com/pgRouting/pgrouting/issues?utf8=%E2%9C%93&q=milestone%3A%22Release%203.7.2%22>`__
7171

72+
.. rubric:: Build
73+
74+
* `#2713 <https://github.com/pgRouting/pgrouting/pull/2713>`__ cmake missing
75+
some policies and min version
76+
77+
- Using OLD policies: CMP0148, CMP0144, CMP0167
78+
- Minimum cmake version 3.12
79+
7280
.. rubric:: Bug fixes
7381

7482
* `#2707 <https://github.com/pgRouting/pgrouting/pull/2707>`__ Build failure in

0 commit comments

Comments
 (0)