all repos — tint2 @ 3a709ac55066d3c9ab1f1ec0860c95b9c2e6dd07

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

*fix* abort cmake with an error message if not all dependencies could be found



git-svn-id: http://tint2.googlecode.com/svn/trunk@507 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

3a709ac55066d3c9ab1f1ec0860c95b9c2e6dd07

parent

f2e1dd4ce3024ef83035189bc8d8aac775170363

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -12,6 +12,10 @@ pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 )

pkg_check_modules( IMLIB2 REQUIRED imlib2 ) find_library( RT_LIBRARY rt ) +if( NOT (X11_FOUND AND PANGOCAIRO_FOUND AND PANGO_FOUND AND CAIRO_FOUND AND GLIB2_FOUND AND GOBJECT2_FOUND AND IMLIB2_FOUND) ) + message( FATAL_ERROR "Not all dependencies fulfilled. See http://code.google.com/p/tint2/wiki/Install" ) +endif( NOT (X11_FOUND AND PANGOCAIRO_FOUND AND PANGO_FOUND AND CAIRO_FOUND AND GLIB2_FOUND AND GOBJECT2_FOUND AND IMLIB2_FOUND) ) + string( REPLACE ";" " " FLAGS_REPLACED "${IMLIB2_LDFLAGS}" ) set( CMAKE_REQUIRED_FLAGS "${FLAGS_REPLACED}" ) check_library_exists( "${IMLIB2_LIBRARIES}" "imlib_context_set_display" "${IMLIB2_LIBRARY_DIRS}" IMLIB_BUILD_WITH_X )