Skip to content

Commit 6b78a11

Browse files
committed
Merge branch 'develop' of github.com:baidu/Paddle into feature/c_api
2 parents 0d73f4c + 929090e commit 6b78a11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/external/python.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,7 @@ ENDIF(PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND)
221221

222222
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR})
223223
INCLUDE_DIRECTORIES(${PYTHON_NUMPY_INCLUDE_DIR})
224+
225+
IF(NOT WITH_PYTHON)
226+
SET(PYTHON_LIBRARIES "")
227+
ENDIF()

0 commit comments

Comments
 (0)