mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
4dd8b4eeef
commit
6c631c6b57
@ -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"
|
||||
)
|
||||
|
||||
31
dev-cpp/curlpp/files/curlpp-0.8.1-cmake_minimum.patch
Normal file
31
dev-cpp/curlpp/files/curlpp-0.8.1-cmake_minimum.patch
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user