Skip to content

Commit

Permalink
raised CMAKE version, fixed deprecated PythonInterp
Browse files Browse the repository at this point in the history
  • Loading branch information
fceller committed Feb 18, 2025
1 parent 2dd3644 commit 64aa203
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/googletest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.8)
cmake_minimum_required(VERSION 3.21)

if (CMAKE_VERSION VERSION_LESS "3.1")
add_definitions(-std=c++11)
Expand Down
2 changes: 1 addition & 1 deletion tests/googletest/googlemock/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else()
cmake_policy(SET CMP0048 NEW)
project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
endif()
cmake_minimum_required(VERSION 2.6.4)
cmake_minimum_required(VERSION 3.21)

if (COMMAND set_up_hermetic_build)
set_up_hermetic_build()
Expand Down
2 changes: 1 addition & 1 deletion tests/googletest/googletest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ else()
cmake_policy(SET CMP0048 NEW)
project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
endif()
cmake_minimum_required(VERSION 2.6.4)
cmake_minimum_required(VERSION 3.21)

if (POLICY CMP0063) # Visibility
cmake_policy(SET CMP0063 NEW)
Expand Down
2 changes: 1 addition & 1 deletion tests/googletest/googletest/cmake/internal_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function(cxx_executable name dir libs)
endfunction()

# Sets PYTHONINTERP_FOUND and PYTHON_EXECUTABLE.
find_package(PythonInterp)
find_package(Python3)

# cxx_test_with_flags(name cxx_flags libs srcs...)
#
Expand Down

0 comments on commit 64aa203

Please sign in to comment.