[Openvpn-devel] README.cmake.md: Document minimum required CMake version for --preset
| Message ID | 20240201123039.174176-1-frank@lichtenheld.com |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:7000:6d86:b0:554:adf7:68e6 with SMTP id n6csp156477may;
Thu, 1 Feb 2024 04:31:30 -0800 (PST)
X-Google-Smtp-Source:
AGHT+IH0E8hRqO/blabS/HQOnJcC8Icm8RkjNRFLRXQEFs95EMCCiJwNGBVpaMulBVoY396iQBaP
X-Received: by 2002:aa7:9a4d:0:b0:6da:736d:67c8 with SMTP id
x13-20020aa79a4d000000b006da736d67c8mr2453681pfj.3.1706790690710;
Thu, 01 Feb 2024 04:31:30 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1706790690; cv=none;
d=google.com; s=arc-20160816;
b=IAMn/932gMj7q89iIu/AxuGBbYTpimxosWCtVrqTNtFIICzNnGrHE7lk2Ha7YCzKmF
jQ8PwAEVs2A0E+sWQJ5xetC7+o/yhiVtAuLBFZskpbIwf0sNQHMEKbzWhdVyWyx1JEY5
9SzfqSDsYs4MByBUSrTexGIwJB2lNZqEVuVYQhd8SdIUGhcCpXOdl9e8h7RPpAm8ikC6
ES94h4LrhS++AKgB752nWfpREgscwajEaqJm4f55dy4mizYDmJNQi2V5gCWX8synEBmf
xW5+Y+mg5RM/Fom9+BMkgeFbh+Vjdl+MHf/bWs1CqweLnXWbIO1YX1sLkorr+CPhGvB9
9Mzw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=errors-to:content-transfer-encoding:list-subscribe:list-help
:list-post:list-archive:list-unsubscribe:list-id:precedence:subject
:mime-version:message-id:date:to:from:dkim-signature:dkim-signature
:dkim-signature;
bh=a5zPvgZa+TF1/ABJqlV2OAGIlV4yv/qOJ2KTHzHuj7I=;
fh=MryLJ6CyI597PMux1KTFk56CKBh9YpFTctmgiYe7NGA=;
b=QB9x1dz7WJUewxpYSYcigyr5lSsP0uSyVA5m7+yCjfwiRMd8j43Qgm9Jx4XUX427Qv
MFtbFBZ+4nnKUgy2pAeMiwKXROqYudSlNpBT8Nbvlshm2j5fVVh440DfWqu6UOL6lgzo
fpJhu40moT2LOBFiEA2zReHlgExW/ZsYrpU/z264OAYr0fkxrntx9DX/P0XyCr/zhkb6
ZsofPOYT6pqIkbkhcXun0mSfHq+VCcWFCIEh16QYzC+FbCl+sGv+fDIw4Tj4G6rEALr2
GbahL4T6rpjIHLVxbF/fzPJpzuHfF+SSCigs4kfuDVL9Nl5r2wD9kt+PRuYyWgBz43gb
S63g==;
darn=openvpn.net
ARC-Authentication-Results: i=1; mx.google.com;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=YZMGkKSx;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=jCiqw5H2;
dkim=neutral (body hash did not verify) header.i=@lichtenheld.com
header.s=MBO0001 header.b=ZmvQ3A6f;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net
X-Forwarded-Encrypted: i=0;
AJvYcCWOCH46s/8DZfRPxJPiqVpVo3Ip+QOtdTiKexTR6BtyKErODAsMGM39Mq9pFe1VLkxXce7OO3u1IebDlChtvl8grIH00Qb1Apb3T0pFh8gPlpD2Qc7S8i8dRVZanfKwaInYNecQAPDG65c22/uVWDsoEwimr6w=
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
o26-20020a63921a000000b005cec91fa486si11543853pgd.675.2024.02.01.04.31.30
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Thu, 01 Feb 2024 04:31:30 -0800 (PST)
Received-SPF: pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) client-ip=216.105.38.7;
Authentication-Results: mx.google.com;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=YZMGkKSx;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=jCiqw5H2;
dkim=neutral (body hash did not verify) header.i=@lichtenheld.com
header.s=MBO0001 header.b=ZmvQ3A6f;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net
Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com)
by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1rVWDf-0006F1-Np;
Thu, 01 Feb 2024 12:31:04 +0000
Received: from [172.30.20.202] (helo=mx.sourceforge.net)
by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
(envelope-from <frank@lichtenheld.com>) id 1rVWDa-0006Ec-9R
for openvpn-devel@lists.sourceforge.net;
Thu, 01 Feb 2024 12:31:01 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id:
Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=K2tFyZcYcT3yxtPjvflfuxurQIBNXrgooFRSSpQi8jA=; b=YZMGkKSxsEZkiiU1z69brx3VQv
ayoLSuqS0Rj4nH6NHg6X6nHFSH0jkmQ91LSRtZf+xyVN2eGAtKWfrd6a1cWhm65pMGj0cNsgE/xhI
92DPtMyUCDpaq+GOz/kHLwZLrKVQz6VC5TR4ekxgi1oatMMTEd88jlaaCuGbwpnS6yQ4=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:To:From:
Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description:Resent-Date:
Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:
References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:
List-Owner:List-Archive; bh=K2tFyZcYcT3yxtPjvflfuxurQIBNXrgooFRSSpQi8jA=; b=j
Ciqw5H2Abbik1eDmOK/AZ7NCVgosO+7rrGkTys8CDX4UiK8cD6q3PN7sbFew+NFUPr+JmwLrLPa4d
SVOMC3VsqOx9q2PFtf2tfz4GxvEkATJYObNQMQACDcKqq3lNIYH+IP8cDB0Q/WthQimvqWpzwGFUv
u5HF5+bV6JTLTKPw=;
Received: from mout-p-102.mailbox.org ([80.241.56.152])
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95)
id 1rVWDV-0004UO-Gu for openvpn-devel@lists.sourceforge.net;
Thu, 01 Feb 2024 12:30:59 +0000
Received: from smtp1.mailbox.org (smtp1.mailbox.org
[IPv6:2001:67c:2050:b231:465::1])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest
SHA256)
(No client certificate requested)
by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4TQdXw2xS9z9sny
for <openvpn-devel@lists.sourceforge.net>;
Thu, 1 Feb 2024 13:30:40 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lichtenheld.com;
s=MBO0001; t=1706790640;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:
content-transfer-encoding:content-transfer-encoding;
bh=K2tFyZcYcT3yxtPjvflfuxurQIBNXrgooFRSSpQi8jA=;
b=ZmvQ3A6fylvJjvAxP34huLjozIOZ+dJQkrBhn/FlcpdQjMBF6O4qzHzuXL++iaOerhymcp
FU9UKAElX6/GGf+aXTnlOVI17vvECVk4BkeU6kCH66izA6QRbA+sdkbAwmXuRPgC7etCwC
dj6IPc9XCVdJvRE723eA5FCsEDSqeBhwqV4fzkNaS4jktAMXnOXLOGdvGnBlqbdp5+vA3Q
DmQePMA01JZ6wagRTJMbH0ngfSPEh03Q8SVIwEBn+20CaKnnAJcn1UVO2q5MF+Hq4j5txK
QO4X9RCYaFeN9+IJ0Du7WHxGws7sb85+WQ4dn90I9Z5DtWnT3J4REdSjxejkng==
From: Frank Lichtenheld <frank@lichtenheld.com>
To: openvpn-devel@lists.sourceforge.net
Date: Thu, 1 Feb 2024 13:30:39 +0100
Message-Id: <20240201123039.174176-1-frank@lichtenheld.com>
MIME-Version: 1.0
X-Rspamd-Queue-Id: 4TQdXw2xS9z9sny
X-Spam-Score: -0.9 (/)
X-Spam-Report: Spam detection software,
running on the system "util-spamd-2.v13.lw.sourceforge.com",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: CMakePreset.json is supported since 3.19,
but we have a version
3 preset file, so need at least 3.21. Github: OpenVPN/openvpn#489 Change-Id:
I44c555f6ffa08f2aee739c7f687fa3b678c86231 Signed-off-by: Frank Lichtenheld
<frank@lichtenheld.com> --- README.cmake.md | 7 ++++++- 1 file changed, 6
insertions(+ [...]
Content analysis details: (-0.9 points, 6.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/,
low trust [80.241.56.152 listed in list.dnswl.org]
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 SPF_PASS SPF: sender matches SPF record
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily
valid
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's domain
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
-0.0 T_SCC_BODY_TEXT_LINE No description available.
X-Headers-End: 1rVWDV-0004UO-Gu
Subject: [Openvpn-devel] [PATCH] README.cmake.md: Document minimum required
CMake version for --preset
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: =?utf-8?q?1789699754912749099?=
X-GMAIL-MSGID: =?utf-8?q?1789699754912749099?=
|
| Series |
[Openvpn-devel] README.cmake.md: Document minimum required CMake version for --preset
|
|
Commit Message
Frank Lichtenheld
Feb. 1, 2024, 12:30 p.m. UTC
CMakePreset.json is supported since 3.19, but we have a version
3 preset file, so need at least 3.21.
Github: OpenVPN/openvpn#489
Change-Id: I44c555f6ffa08f2aee739c7f687fa3b678c86231
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
---
README.cmake.md | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Comments
Makes sense (I did read the GH issue).
Your patch has been applied to the master branch.
commit 53b16d07e889b69128203d3b50ed47ceb77c5771
Author: Frank Lichtenheld
Date: Thu Feb 1 13:30:39 2024 +0100
README.cmake.md: Document minimum required CMake version for --preset
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20240201123039.174176-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28160.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
On Thu, Feb 01, 2024 at 08:28:21PM +0100, Gert Doering wrote: > Makes sense (I did read the GH issue). > > Your patch has been applied to the master branch. I think it would make sense to apply this to release/2.6 as well, since that uses the same CMake build. Thanks,
Hi, On Fri, Feb 02, 2024 at 12:27:19PM +0100, Frank Lichtenheld wrote: > On Thu, Feb 01, 2024 at 08:28:21PM +0100, Gert Doering wrote: > > Makes sense (I did read the GH issue). > > > > Your patch has been applied to the master branch. > > I think it would make sense to apply this to release/2.6 as well, since > that uses the same CMake build. Done! commit 9ec524613662989ab165d8ca507c2e0abffc3dff (HEAD -> release/2.6) Author: Frank Lichtenheld <frank@lichtenheld.com> Date: Thu Feb 1 13:30:39 2024 +0100 README.cmake.md: Document minimum required CMake version for --preset gert
diff --git a/README.cmake.md b/README.cmake.md index 4f41c701..89d9419d 100644 --- a/README.cmake.md +++ b/README.cmake.md @@ -17,6 +17,10 @@ also makes cross-building with MinGW on Linux much simpler. However, builds are also possible by providing the build dependencies manually, but that might require specifying more information to CMake. +You need at least CMake version 3.21 or newer for the `CMakePreset.json` +file to be supported. Manual builds might be possible with older CMake +versions, see `cmake_minimum_required` in `CMakeLists.txt`. + If you're looking to build the full Windows installer MSI, take a look at https://github.com/OpenVPN/openvpn-build.git . @@ -27,7 +31,7 @@ The following tools are expected to be present on the system, you can install them with a package manager of your choice (e.g. chocolatey, winget) or manually: -* CMake +* CMake (>= 3.21) * Git * Python (3.x), plus the Python module `docutils` * Visual Studion 17 (2022), C/C++ Enviroment @@ -101,6 +105,7 @@ To build the Windows executables on a Linux system: git clone https://github.com/OpenVPN/openvpn.git export VCPKG_ROOT=$PWD/vcpkg cd openvpn + # requires CMake 3.21 or newer cmake --preset mingw-x64 cmake --build --preset mingw-x64 # unit tests are built, but no testPreset is provided. You need to copy