Merge pull request #3939 from anpol:python-find-strategy
PiperOrigin-RevId: 461699564 Change-Id: Id7043073f106f57433a99fea0e8e4ab015bf896d
This commit is contained in:
		@@ -244,6 +244,12 @@ function(cxx_executable name dir libs)
 | 
				
			|||||||
    ${name} "${cxx_default}" "${libs}" "${dir}/${name}.cc" ${ARGN})
 | 
					    ${name} "${cxx_default}" "${libs}" "${dir}/${name}.cc" ${ARGN})
 | 
				
			||||||
endfunction()
 | 
					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.
 | 
					# Sets PYTHONINTERP_FOUND and PYTHON_EXECUTABLE.
 | 
				
			||||||
if ("${CMAKE_VERSION}" VERSION_LESS "3.12.0")
 | 
					if ("${CMAKE_VERSION}" VERSION_LESS "3.12.0")
 | 
				
			||||||
  find_package(PythonInterp)
 | 
					  find_package(PythonInterp)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user