CMake: Do not set C++ version any more.

At least C++11 is standard in modern compilers anyway. Only macOS seems
to need an explicit set for this.
This commit is contained in:
Jochen Topf 2022-05-27 11:48:42 +02:00
parent cffbe661b1
commit 6e9c00769f
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ jobs:
env: env:
CC: clang CC: clang
CXX: clang++ CXX: clang++
CXXFLAGS: -Werror -Wall -pedantic CXXFLAGS: -Werror -Wall -pedantic -std=c++17
BUILD_TYPE: Debug BUILD_TYPE: Debug
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -4,7 +4,7 @@ project(osmpbf VERSION 1.5.0)
include(GNUInstallDirs) include(GNUInstallDirs)
set(CMAKE_CXX_STANDARD 11) #set(CMAKE_CXX_STANDARD 11)
find_package(Protobuf REQUIRED) find_package(Protobuf REQUIRED)