未验证 提交 6547d256 编写于 作者: F Feiyu Chan 提交者: GitHub

change the condition to find python interpreter to avoid skipping the find process. (#43888)

* change to condition to find python interpreter to avoid skipping the find process.
PYTHONINTERP_FOUND is the best signal that python interpreter is found.
上级 323160df
......@@ -95,7 +95,7 @@ set(wrapped_infermeta_header_file
set(wrapped_infermeta_source_file
${CMAKE_SOURCE_DIR}/paddle/phi/infermeta/generated.cc)
if(NOT PYTHON_EXECUTABLE)
if(NOT PYTHONINTERP_FOUND)
find_package(PythonInterp REQUIRED)
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册