diff --git a/CMakeLists.txt b/CMakeLists.txt index 59e86b24..ccec880c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,18 +1,5 @@ -cmake_minimum_required (VERSION 3.16.3) - -foreach(p - CMP0048 # OK to clear PROJECT_VERSION on project() - CMP0054 # CMake 3.1 - CMP0056 # export EXE_LINKER_FLAGS to try_run - CMP0057 # Support no if() IN_LIST operator - CMP0063 # Honor visibility properties for all targets - CMP0067 # Honor language standard in try_compile() source file signature - CMP0077 # Allow option() overrides in importing projects - ) - if(POLICY ${p}) - cmake_policy(SET ${p} NEW) - endif() -endforeach() +# Require CMake 3.10. If available, use the policies up to CMake 3.22. +cmake_minimum_required (VERSION 3.10...3.22) project (benchmark VERSION 1.7.1 LANGUAGES CXX) diff --git a/docs/dependencies.md b/docs/dependencies.md index 98aae42a..07760e10 100644 --- a/docs/dependencies.md +++ b/docs/dependencies.md @@ -1,18 +1,13 @@ # Build tool dependency policy -To ensure the broadest compatibility when building the benchmark library, but -still allow forward progress, we require any build tooling to be available for: +We follow the [Foundational C++ support policy](https://opensource.google/documentation/policies/cplusplus-support) for our build tools. In +particular the ["Build Systems" section](https://opensource.google/documentation/policies/cplusplus-support#build-systems). -* Debian stable _and_ -* The last two Ubuntu LTS releases +## CMake -Currently, this means using build tool versions that are available for Ubuntu -Ubuntu 20.04 (Focal Fossa), Ubuntu 22.04 (Jammy Jellyfish) and Debian 11.4 (bullseye). - -## cmake -The current supported version is cmake 3.16.3 as of 2022-08-10. - -* 3.16.3 (ubuntu 20.04) -* 3.18.4 (debian 11.4) -* 3.22.1 (ubuntu 22.04) +The current supported version is CMake 3.10 as of 2023-08-10. Most modern +distributions include newer versions, for example: +* Ubuntu 20.04 provides CMake 3.16.3 +* Debian 11.4 provides CMake 3.18.4 +* Ubuntu 22.04 provides CMake 3.22.1