mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fix linking, if BUILTIN_CHANNELS switched off
If -DBUILTIN_CHANNELS=OFF is supplied to cmake, auxiliary channel modules are built as plugins, that are loaded from $LIBDIR/freerdp as shared libs. This patch fixes the linkage of these plugins by taking inter-channel dependencies of this separation into account. If BUILTIN_CHANNELS=ON, these channel modules are linked directly into the main modules. Therefore, the linking of the plugins is conditioned accordingly.
This commit is contained in:
committed by
akallabeth
parent
e42696bb2e
commit
297f965052
@@ -26,7 +26,10 @@ include_directories(..)
|
||||
add_channel_client_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} TRUE "DVCPluginEntry")
|
||||
|
||||
|
||||
|
||||
if(NOT BUILTIN_CHANNELS)
|
||||
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-client)
|
||||
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} rdpgfx-client)
|
||||
endif()
|
||||
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} winpr)
|
||||
|
||||
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
||||
|
||||
Reference in New Issue
Block a user