From d51fe7680c5270ddf8d324bbe11caab6d1e27ade Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 21 Aug 2023 21:44:48 +0100 Subject: gentoo auto-resync : 21:08:2023 - 21:44:47 --- .../kosmindoormap-23.04.3-protobuf-23-1.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 dev-libs/kosmindoormap/files/kosmindoormap-23.04.3-protobuf-23-1.patch (limited to 'dev-libs/kosmindoormap/files/kosmindoormap-23.04.3-protobuf-23-1.patch') diff --git a/dev-libs/kosmindoormap/files/kosmindoormap-23.04.3-protobuf-23-1.patch b/dev-libs/kosmindoormap/files/kosmindoormap-23.04.3-protobuf-23-1.patch new file mode 100644 index 000000000000..427abde08a81 --- /dev/null +++ b/dev-libs/kosmindoormap/files/kosmindoormap-23.04.3-protobuf-23-1.patch @@ -0,0 +1,31 @@ +From eac8c57528b5ef8e694df4072ed7a60be799c270 Mon Sep 17 00:00:00 2001 +From: Antonio Rojas +Date: Wed, 5 Jul 2023 16:16:02 +0200 +Subject: [PATCH] Use protobuf's cmake config if available + +--- + CMakeLists.txt | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 466c9add..da9881cd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -73,7 +73,13 @@ find_package(BISON REQUIRED) + set_package_properties(BISON PROPERTIES PURPOSE "MapCSS parser for indoor map rendering.") + + if (NOT WIN32) +- find_package(Protobuf) ++ # try upstream cmake config first ++ set(protobuf_MODULE_COMPATIBLE ON) ++ find_package(Protobuf CONFIG) ++ if(NOT Protobuf_FOUND) ++ # fall back to cmake's protobuf module ++ find_package(Protobuf) ++ endif() + set_package_properties(Protobuf PROPERTIES TYPE OPTIONAL PURPOSE "Parsing of OSM PBF files.") + endif() + +-- +GitLab + -- cgit v1.2.3