X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=2a449b7035adff8b959a25dc1af9c7270d3c6479;hp=0a3878ce9e44dd803e253f8fab8a21348a5bb69f;hb=94dc495389fba3559d0be7875f0b771f063afe70;hpb=dfcf836c5f1f57cadcdbea5c5a7a7034d21ce332 diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a3878ce..2a449b70 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -249,6 +249,7 @@ if(WITH_LIBINDICATE) pkg_check_modules(INDICATEQT indicate-qt>=0.2.1) if(INDICATEQT_FOUND) message(STATUS "Enabling Ayatana notification support") + set(HAVE_INDICATEQT true) add_definitions(-DHAVE_INDICATEQT) else(INDICATEQT_FOUND) message(STATUS "Disabling Ayatana notification support") @@ -256,6 +257,8 @@ if(WITH_LIBINDICATE) endif(PKG_CONFIG_FOUND) else(WITH_LIBINDICATE) message(STATUS "Not enabling Ayatana notification support") + # We don't want to link against it even if another package has found it + set(INDICATEQT_LIBRARIES "") endif(WITH_LIBINDICATE) # Now set up install locations; those are set by KDE if integration is enabled @@ -309,9 +312,9 @@ if(WIN32) endif(HAVE_SSL AND STATIC) endif(WIN32) -if(INDICATEQT_FOUND) +if(HAVE_INDICATEQT) add_definitions(-DXDG_APPS_INSTALL_DIR=${XDG_APPS_INSTALL_DIR}) -endif(INDICATEQT_FOUND) +endif(HAVE_INDICATEQT) # We need to create a version.gen # For this, we create our genversion binary and make sure it is run every time.