diff options
author | Abseil Team <absl-team@google.com> | 2021-08-20 21:47:35 (GMT) |
---|---|---|
committer | CJ Johnson <johnsoncj@google.com> | 2021-08-24 16:28:58 (GMT) |
commit | 62046339790b8fb8a37e8fde5d2edcbf4ffe2a3a (patch) | |
tree | 885c6644979906f912262d9b613ca3d6749c4c24 /CMakeLists.txt | |
parent | 2f80c2ba71c0e8922a03b9b855e5b019ad1f7064 (diff) | |
download | googletest-62046339790b8fb8a37e8fde5d2edcbf4ffe2a3a.zip googletest-62046339790b8fb8a37e8fde5d2edcbf4ffe2a3a.tar.gz googletest-62046339790b8fb8a37e8fde5d2edcbf4ffe2a3a.tar.bz2 |
Googletest export
Bump `cmake_minimum_required` to 3.5.
Delete conditional branches exclusive to older versions.
Notable dependents:
- github.com/grpc/grpc >= 3.5.1
- github.com/abseil/abseil-cpp >= 3.5
- github.com/googleapis/google-cloud-cpp >= 3.5
On the other hand, github.com/protocolbuffers/protobuf is >= 3.1.3, but it only depends on GoogleTest 1.10.
Fixes #3523
PiperOrigin-RevId: 392073834
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ea81ab1..7d2eb81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # Note: CMake support is community-based. The maintainers do not use CMake # internally. -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.5) if (POLICY CMP0048) cmake_policy(SET CMP0048 NEW) @@ -10,10 +10,8 @@ endif (POLICY CMP0048) project(googletest-distribution) set(GOOGLETEST_VERSION 1.11.0) -if (CMAKE_VERSION VERSION_GREATER "3.0.2") - if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX) - set(CMAKE_CXX_EXTENSIONS OFF) - endif() +if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX) + set(CMAKE_CXX_EXTENSIONS OFF) endif() enable_testing() |