Skip to content

Commit 9e273a6

Browse files
committed
Effectively, this change
* bumps the minimum CMake version to 3.22 * bumps the minimum C++ version to C++17 This aligns with the Google C++ support policy at https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md PiperOrigin-RevId: 881717521
1 parent 4a0c572 commit 9e273a6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file. See the AUTHORS file for names of contributors.
44

5-
cmake_minimum_required(VERSION 3.9)
5+
cmake_minimum_required(VERSION 3.22)
66
# Keep the version below in sync with the one in db.h
77
project(leveldb VERSION 1.23.0 LANGUAGES C CXX)
88

@@ -16,8 +16,8 @@ endif(NOT CMAKE_C_STANDARD)
1616

1717
# C++ standard can be overridden when this is used as a sub-project.
1818
if(NOT CMAKE_CXX_STANDARD)
19-
# This project requires C++11.
20-
set(CMAKE_CXX_STANDARD 11)
19+
# This project requires C++17.
20+
set(CMAKE_CXX_STANDARD 17)
2121
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2222
set(CMAKE_CXX_EXTENSIONS OFF)
2323
endif(NOT CMAKE_CXX_STANDARD)

0 commit comments

Comments
 (0)