0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00

CMake: accept all NEW policies in released CMake versions

Using the <max> argument to cmake_minimum_required will
set all policies up to <max> to NEW. We might need to
fix some issues arising from that, but this means that
modern CMake can already behave like it wants even with
leaving <min> so that we can support old distros (currently
Debian 10).

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
This commit is contained in:
Frank Lichtenheld 2023-10-13 15:18:45 +02:00 committed by David Sommerseth
parent 72275db1d5
commit 268bf42b9e
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 3.13) cmake_minimum_required(VERSION 3.13...3.28)
cmake_policy(SET CMP0048 NEW)
project(OpenVPN3-core VERSION 3) project(OpenVPN3-core VERSION 3)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.10) cmake_minimum_required(VERSION 3.13...3.28)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)