Skip to content

Commit 929090e

Browse files
authored
Merge pull request #1702 from gangliao/python_remove
Fix NOT WITH_PYTHON
2 parents 5961b52 + df9993f commit 929090e

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)