dev-cpp/curlpp: bump cmake_minimum_required

Closes: https://bugs.gentoo.org/957292
Closes: https://bugs.gentoo.org/957293
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć 2025-06-07 16:24:14 +02:00
parent 4dd8b4eeef
commit 6c631c6b57
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
2 changed files with 32 additions and 0 deletions

View File

@ -23,6 +23,7 @@ DEPEND="
"
PATCHES=(
"${FILESDIR}/curlpp-0.8.1-cmake_minimum.patch"
"${FILESDIR}/curlpp-0.8.1-fix-curloption.patch"
"${FILESDIR}/curlpp-0.8.1-fix-pkgconfig.patch"
)

View File

@ -0,0 +1,31 @@
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.20)
include(FindPkgConfig)
pkg_check_modules(CURLPP REQUIRED curlpp)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required(VERSION 3.20)
project(curlpp)
@@ -15,7 +16,6 @@ include(GNUInstallDirs)
if(WIN32)
# cmake 3.4 is required for CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
- cmake_minimum_required(VERSION 3.4)
# c++ 11 support from cmake 3.4 or newer
set(CMAKE_CXX_STANDARD 11) # C++11...
@@ -25,7 +25,6 @@ if(WIN32)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
else()
if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_LESS 3.1)
- cmake_minimum_required(VERSION 2.8)
# c++11 support for cmake 2.8.12 - 3.0.x
#
# for non-windows platform we try to keep cmake 2.8 support