Skip to content

Commit 64aa203

Browse files
committed
raised CMAKE version, fixed deprecated PythonInterp
1 parent 2dd3644 commit 64aa203

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/googletest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.8)
1+
cmake_minimum_required(VERSION 3.21)
22

33
if (CMAKE_VERSION VERSION_LESS "3.1")
44
add_definitions(-std=c++11)

tests/googletest/googlemock/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ else()
3939
cmake_policy(SET CMP0048 NEW)
4040
project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
4141
endif()
42-
cmake_minimum_required(VERSION 2.6.4)
42+
cmake_minimum_required(VERSION 3.21)
4343

4444
if (COMMAND set_up_hermetic_build)
4545
set_up_hermetic_build()

tests/googletest/googletest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ else()
4646
cmake_policy(SET CMP0048 NEW)
4747
project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
4848
endif()
49-
cmake_minimum_required(VERSION 2.6.4)
49+
cmake_minimum_required(VERSION 3.21)
5050

5151
if (POLICY CMP0063) # Visibility
5252
cmake_policy(SET CMP0063 NEW)

tests/googletest/googletest/cmake/internal_utils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function(cxx_executable name dir libs)
228228
endfunction()
229229

230230
# Sets PYTHONINTERP_FOUND and PYTHON_EXECUTABLE.
231-
find_package(PythonInterp)
231+
find_package(Python3)
232232

233233
# cxx_test_with_flags(name cxx_flags libs srcs...)
234234
#

0 commit comments

Comments
 (0)