Commit 89fa3b86 authored by Jan Möbius's avatar Jan Möbius

Link plugins wqith PythonInterface wq against python

parent 1794d85a
......@@ -672,6 +672,13 @@ function (_build_openflipper_plugin plugin)
acg_set (OPENFLIPPER_STATIC_PLUGIN_FILES "${OPENFLIPPER_STATIC_PLUGIN_FILES};${PLUGIN_OUTPUT_FILENAME}")
endif ()
# Link plugin against python if possible
if ( ${_PLUGIN}_PYTHONINTERFACE AND NOT DISABLE_OPENFLIPPER_PYTHON_SYSTEM )
if(PYTHON3_FOUND)
target_link_libraries (Plugin-${plugin} Python3::Python )
endif()
endif()
# append compiler and linker flags from plugin dependencies
list(APPEND ${_PLUGIN}_DEPS_COMPILE_DEFINITIONS ${${_PLUGIN}_CDEFINITIONSADD} )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment