Skip to content

Commit

Permalink
Merge pull request #3939 from anpol:python-find-strategy
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 461699564
Change-Id: Id7043073f106f57433a99fea0e8e4ab015bf896d
  • Loading branch information
Copybara-Service committed Jul 18, 2022
2 parents 91480a4 + 96ddde1 commit 71feea6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions googletest/cmake/internal_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ function(cxx_executable name dir libs)
${name} "${cxx_default}" "${libs}" "${dir}/${name}.cc" ${ARGN})
endfunction()

# CMP0094 policy enables finding a Python executable in the LOCATION order, as
# specified by the PATH environment variable.
if (POLICY CMP0094)
cmake_policy(SET CMP0094 NEW)
endif()

# Sets PYTHONINTERP_FOUND and PYTHON_EXECUTABLE.
if ("${CMAKE_VERSION}" VERSION_LESS "3.12.0")
find_package(PythonInterp)
Expand Down

0 comments on commit 71feea6

Please sign in to comment.