mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-21 22:53:31 +02:00
Closes: https://bugs.gentoo.org/957292 Closes: https://bugs.gentoo.org/957293 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
31 lines
923 B
Diff
31 lines
923 B
Diff
--- 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
|