mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-cpp/robin-map: Fix CMake < 3.10 warning
Closes: https://bugs.gentoo.org/964543 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
Source: https://github.com/Tessil/robin-map/pull/89
|
||||
|
||||
From 0f85726168ebd32bf169de269df245121506748c Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Sat, 18 Oct 2025 22:28:16 +0200
|
||||
Subject: [PATCH] Raise CMake minimum version to 3.10..3.31 range
|
||||
|
||||
CMake 3.10 was released in 2017.
|
||||
|
||||
Amends 1115dad3ffa0994e3f43b693d9b9cc99944c64c1, fixes warning since CMake-3.31:
|
||||
|
||||
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
|
||||
Compatibility with CMake < 3.10 will be removed from a future version of
|
||||
CMake.
|
||||
|
||||
Update the VERSION argument value. Or, use the ... syntax
|
||||
to tell CMake that the project requires at least but has been updated
|
||||
to work with policies introduced by or earlier.
|
||||
|
||||
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
tests/CMakeLists.txt | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index be1a3ff..c08cc6f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.5)
|
||||
+cmake_minimum_required(VERSION 3.10..3.31)
|
||||
|
||||
project(tsl-robin-map VERSION 1.4.0 LANGUAGES CXX)
|
||||
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index 6d3bbcd..dac2039 100644
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.8)
|
||||
+cmake_minimum_required(VERSION 3.10..3.31)
|
||||
|
||||
project(tsl_robin_map_tests)
|
||||
|
||||
--
|
||||
2.51.1
|
||||
|
||||
39
dev-cpp/robin-map/robin-map-1.4.0-r1.ebuild
Normal file
39
dev-cpp/robin-map/robin-map-1.4.0-r1.ebuild
Normal file
@@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="C++ fast hash map and hash set using robin hood hashing"
|
||||
HOMEPAGE="https://github.com/Tessil/robin-map"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/Tessil/robin-map"
|
||||
else
|
||||
SRC_URI="https://github.com/Tessil/robin-map/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? ( dev-libs/boost )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-cmake-minreqver-3.10.patch" ) # bug #964543
|
||||
|
||||
src_test() {
|
||||
cd tests || die
|
||||
sed -i \
|
||||
-e '/Boost_USE_STATIC_LIBS/d' \
|
||||
-e 's/-Werror//' \
|
||||
CMakeLists.txt || die
|
||||
cmake -S "${S}/tests" -B . -GNinja || die
|
||||
eninja
|
||||
./tsl_robin_map_tests || die
|
||||
}
|
||||
Reference in New Issue
Block a user