提交 2f0dc846 编写于 作者: Z zhouwei25 提交者: liuwei1031

fix the bug that PYTHON_EXECUTABLE not exists (#19225)

* test=develop,fix the inference library compilation bug on windows

* test=develop,Fix the inference library compilation bug on windows

* test=develop,fix the bug that PYTHON_EXECUTABLE not exists
上级 1cbbf9f1
......@@ -14,6 +14,12 @@
# make package for paddle fluid shared and static library
if(WIN32)
if(NOT PYTHON_EXECUTABLE)
FIND_PACKAGE(PythonInterp REQUIRED)
endif()
endif()
set(COPY_SCRIPT_DIR ${PADDLE_SOURCE_DIR}/cmake)
function(copy TARGET)
set(options "")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册