File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -268,13 +268,15 @@ mark_as_advanced(PYTHON_LIBRARY PYTHON_INCLUDE_DIR)
268268# library. We now set the variables listed by the documentation for this
269269# module.
270270set (PYTHON_INCLUDE_DIRS "${PYTHON_INCLUDE_DIR} " )
271- set (PYTHON_LIBRARIES "${PYTHON_LIBRARY} " )
271+ if (NOT DEFINED PYTHON_LIBRARIES)
272+ set (PYTHON_LIBRARIES "${PYTHON_LIBRARY} " )
273+ endif ()
272274if (NOT PYTHON_DEBUG_LIBRARY)
273275 set (PYTHON_DEBUG_LIBRARY "" )
274276endif ()
275277set (PYTHON_DEBUG_LIBRARIES "${PYTHON_DEBUG_LIBRARY} " )
276278
277- find_package_message(PYTHON "Found PythonLibs: ${PYTHON_LIBRARY } "
279+ find_package_message(PYTHON "Found PythonLibs: ${PYTHON_LIBRARIES } "
278280 "${PYTHON_EXECUTABLE}${PYTHON_VERSION_STRING} " )
279281
280282set (PYTHONLIBS_FOUND TRUE )
You can’t perform that action at this time.
0 commit comments