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
padding_in_crf
zhouwei25 6 years ago committed by liuwei1031
parent 1cbbf9f1ef
commit 2f0dc8463a

@ -14,6 +14,12 @@
# make package for paddle fluid shared and static library # 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) set(COPY_SCRIPT_DIR ${PADDLE_SOURCE_DIR}/cmake)
function(copy TARGET) function(copy TARGET)
set(options "") set(options "")

Loading…
Cancel
Save