Set required C++ version

6e9c007 introduced a regression. The code requires c++17 (not c++11) and it's not yet default everywhere.
This commit is contained in:
Dmitry Marakasov 2024-03-12 19:47:05 +03:00 committed by GitHub
parent db10ff0949
commit 770bf97b1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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 "")