mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
First shot on fixing over linking
If a target is linked against libraries with cmake (target_link_libraries) and the libraries are not marked as PRIVATE they are "exported" and in case a other target is linked against this target it is also linked against *all* (not private) libraries. Without declaring private libraries PRIVATE a lot of over linking (linking against unneeded libraries) was done.
This commit is contained in:
@@ -29,7 +29,7 @@ set(${MODULE_PREFIX}_LIBS rdtk)
|
||||
|
||||
list(APPEND ${MODULE_PREFIX}_LIBS ${X11_LIBRARIES})
|
||||
|
||||
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
||||
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS} winpr)
|
||||
|
||||
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "RdTk")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user