From 770bf97b1b30078e38f6f282803eae8f69011bb3 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 12 Mar 2024 19:47:05 +0300 Subject: [PATCH] Set required C++ version 6e9c007 introduced a regression. The code requires c++17 (not c++11) and it's not yet default everywhere. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 90644c0..11134f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ project(osmpbf VERSION 1.5.0) include(GNUInstallDirs) +set(CMAKE_CXX_STANDARD 17) + # This is needed for the protobuf_generate_cpp() function to work on newer # versions of the Protobuf CMake config. set(protobuf_MODULE_COMPATIBLE ON CACHE BOOL "")