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
This commit is contained in:
		@@ -36,13 +36,9 @@ endif()
 | 
			
		||||
# as ${gmock_SOURCE_DIR} and to the root binary directory as
 | 
			
		||||
# ${gmock_BINARY_DIR}.
 | 
			
		||||
# Language "C" is required for find_package(Threads).
 | 
			
		||||
if (CMAKE_VERSION VERSION_LESS 3.0)
 | 
			
		||||
  project(gmock CXX C)
 | 
			
		||||
else()
 | 
			
		||||
  cmake_policy(SET CMP0048 NEW)
 | 
			
		||||
  project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
 | 
			
		||||
endif()
 | 
			
		||||
cmake_minimum_required(VERSION 2.8.12)
 | 
			
		||||
cmake_minimum_required(VERSION 3.5)
 | 
			
		||||
cmake_policy(SET CMP0048 NEW)
 | 
			
		||||
project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
 | 
			
		||||
 | 
			
		||||
if (COMMAND set_up_hermetic_build)
 | 
			
		||||
  set_up_hermetic_build()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user