Avoid linking against disabled features
If rsvg or startup-notification features are disabled, the binary should not be linked against the associated libraries.
This commit is contained in:
parent
00b88c2725
commit
f241c4546b
1 changed files with 7 additions and 3 deletions
|
@ -148,9 +148,13 @@ target_link_libraries( tint2 ${X11_LIBRARIES}
|
||||||
${CAIRO_LIBRARIES}
|
${CAIRO_LIBRARIES}
|
||||||
${GLIB2_LIBRARIES}
|
${GLIB2_LIBRARIES}
|
||||||
${GOBJECT2_LIBRARIES}
|
${GOBJECT2_LIBRARIES}
|
||||||
${IMLIB2_LIBRARIES}
|
${IMLIB2_LIBRARIES} )
|
||||||
${RSVG_LIBRARIES}
|
if( ENABLE_RSVG )
|
||||||
${SN_LIBRARIES} )
|
target_link_libraries( tint2 ${RSVG_LIBRARIES} )
|
||||||
|
endif( ENABLE_RSVG )
|
||||||
|
if( ENABLE_SN )
|
||||||
|
target_link_libraries( tint2 ${SN_LIBRARIES} )
|
||||||
|
endif( ENABLE_SN )
|
||||||
if( RT_LIBRARY )
|
if( RT_LIBRARY )
|
||||||
target_link_libraries( tint2 ${RT_LIBRARY} )
|
target_link_libraries( tint2 ${RT_LIBRARY} )
|
||||||
endif( RT_LIBRARY )
|
endif( RT_LIBRARY )
|
||||||
|
|
Loading…
Reference in a new issue