From 808769fdda874bfe1cd27cf65973cf7458638758 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Fri, 15 Dec 2023 00:22:22 +0800 Subject: [PATCH] astro/libosmpbf: Fix build with protobuf 22+ --- astro/libosmpbf/Makefile | 4 ++-- astro/libosmpbf/files/patch-protobuf | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 astro/libosmpbf/files/patch-protobuf diff --git a/astro/libosmpbf/Makefile b/astro/libosmpbf/Makefile index 0b57580847d4..ef91f55e6cde 100644 --- a/astro/libosmpbf/Makefile +++ b/astro/libosmpbf/Makefile @@ -17,7 +17,7 @@ USE_GITHUB= yes GH_ACCOUNT= scrosby GH_PROJECT= OSM-binary -USES= cmake compiler:c++11-lang -USE_CXXSTD= c++11 +USES= cmake compiler:c++17-lang +USE_CXXSTD= c++17 .include diff --git a/astro/libosmpbf/files/patch-protobuf b/astro/libosmpbf/files/patch-protobuf new file mode 100644 index 000000000000..499906ee3407 --- /dev/null +++ b/astro/libosmpbf/files/patch-protobuf @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2021-01-06 13:47:22 UTC ++++ CMakeLists.txt +@@ -4,7 +4,7 @@ project(osmpbf VERSION 1.5.0) + + include(GNUInstallDirs) + +-set(CMAKE_CXX_STANDARD 11) ++set(CMAKE_CXX_STANDARD 17) + + find_package(Protobuf REQUIRED) +