From 6e9c00769fde8c06fbf35a447c9e6dde00775a3a Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 27 May 2022 11:48:42 +0200 Subject: [PATCH] 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. --- .github/workflows/c.yml | 2 +- CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c.yml b/.github/workflows/c.yml index 9814a82..2b7e4cc 100644 --- a/.github/workflows/c.yml +++ b/.github/workflows/c.yml @@ -68,7 +68,7 @@ jobs: env: CC: clang CXX: clang++ - CXXFLAGS: -Werror -Wall -pedantic + CXXFLAGS: -Werror -Wall -pedantic -std=c++17 BUILD_TYPE: Debug steps: - uses: actions/checkout@v2 diff --git a/CMakeLists.txt b/CMakeLists.txt index 69591ed..b98201d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(osmpbf VERSION 1.5.0) include(GNUInstallDirs) -set(CMAKE_CXX_STANDARD 11) +#set(CMAKE_CXX_STANDARD 11) find_package(Protobuf REQUIRED)