all repos — tint2 @ 1051be9815e1d8a0fb1f31c2230e6c0faaff2f6a

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Merge branch 'do-not-link-against-disabled-optional-features' into 'master'

Avoid linking against disabled features

If rsvg or startup-notification features are disabled, the
binary should not be linked against the associated libraries.

See merge request !9
o9000 mrovi9000@gmail.com
commit

1051be9815e1d8a0fb1f31c2230e6c0faaff2f6a

parent

00b88c272599bbafbebb5a2750d581c10cfe825f

1 files changed, 7 insertions(+), 3 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -148,9 +148,13 @@ ${PANGO_LIBRARIES}

${CAIRO_LIBRARIES} ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES} - ${IMLIB2_LIBRARIES} - ${RSVG_LIBRARIES} - ${SN_LIBRARIES} ) + ${IMLIB2_LIBRARIES} ) +if( ENABLE_RSVG ) + target_link_libraries( tint2 ${RSVG_LIBRARIES} ) +endif( ENABLE_RSVG ) +if( ENABLE_SN ) + target_link_libraries( tint2 ${SN_LIBRARIES} ) +endif( ENABLE_SN ) if( RT_LIBRARY ) target_link_libraries( tint2 ${RT_LIBRARY} ) endif( RT_LIBRARY )