git: 060a6f6c1e0c - main - www/oatpp: Fix building with CMake 4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Sep 2026 07:40:03 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=060a6f6c1e0cb911de2b8a14833b956d7204b724
commit 060a6f6c1e0cb911de2b8a14833b956d7204b724
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-09-22 07:38:31 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-09-22 07:38:49 +0000
www/oatpp: Fix building with CMake 4
Approved by: portmgr (fixit blanket)
---
www/oatpp/files/patch-CMakeLists.txt | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/www/oatpp/files/patch-CMakeLists.txt b/www/oatpp/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..96356948deab
--- /dev/null
+++ b/www/oatpp/files/patch-CMakeLists.txt
@@ -0,0 +1,8 @@
+--- CMakeLists.txt.orig 2024-02-05 03:51:38 UTC
++++ CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
++cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
+
+ file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/src/oatpp/core/base/Environment.hpp" OATPP_VERSION_MACRO REGEX "#define OATPP_VERSION \"[0-9]+.[0-9]+.[0-9]+\"$")
+ string(REGEX REPLACE "#define OATPP_VERSION \"([0-9]+.[0-9]+.[0-9]+)\"$" "\\1" oatpp_VERSION "${OATPP_VERSION_MACRO}")