From 1b545f6bbe71b6e7a360d6605fe91583f2d2e528 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sat, 12 Dec 2015 13:30:13 +0100 Subject: [PATCH] Do not look for libraries that are disabled --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b66f35..136dbd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,8 +20,14 @@ pkg_check_modules( CAIRO REQUIRED cairo ) pkg_check_modules( GLIB2 REQUIRED glib-2.0 ) pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 ) pkg_check_modules( IMLIB2 REQUIRED imlib2>=1.4.2 ) + +if( ENABLE_RSVG ) pkg_check_modules( RSVG librsvg-2.0>=2.14.0 ) +endif( ENABLE_RSVG ) + +if( ENABLE_SN ) pkg_check_modules( SN libstartup-notification-1.0>=0.12 ) +endif(ENABLE_SN) find_library( RT_LIBRARY rt )