We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 91480a4 + 96ddde1 commit 71feea6Copy full SHA for 71feea6
googletest/cmake/internal_utils.cmake
@@ -244,6 +244,12 @@ function(cxx_executable name dir libs)
244
${name} "${cxx_default}" "${libs}" "${dir}/${name}.cc" ${ARGN})
245
endfunction()
246
247
+# CMP0094 policy enables finding a Python executable in the LOCATION order, as
248
+# specified by the PATH environment variable.
249
+if (POLICY CMP0094)
250
+ cmake_policy(SET CMP0094 NEW)
251
+endif()
252
+
253
# Sets PYTHONINTERP_FOUND and PYTHON_EXECUTABLE.
254
if ("${CMAKE_VERSION}" VERSION_LESS "3.12.0")
255
find_package(PythonInterp)
0 commit comments