diff --git a/cmake/external/python.cmake b/cmake/external/python.cmake index 0accf1a8dd83560324716f0f4936be56dd7a9f1b..9085e3799c23e00904616514d93fc00aac79ed48 100644 --- a/cmake/external/python.cmake +++ b/cmake/external/python.cmake @@ -221,3 +221,7 @@ ENDIF(PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND) INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${PYTHON_NUMPY_INCLUDE_DIR}) + +IF(NOT WITH_PYTHON) + SET(PYTHON_LIBRARIES "") +ENDIF() \ No newline at end of file