From 7ea4deec484c2284d61f77e6c52086b4920ac456 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Sat, 8 Mar 2014 17:27:10 +0100 Subject: Allows to build without Soprano and Nepomuk CCMAIL: me@andreascarpino.it REVIEW: 116659 REVIEWED-BY: adjam --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 415156e4..4695791b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,9 +48,11 @@ ADD_DEFINITIONS(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) # ================================================================================== # optional nepomuk requirements -FIND_PACKAGE(Soprano) +if(WITH_NEPOMUK) + FIND_PACKAGE(Soprano) -FIND_PACKAGE(NepomukCore 0.1.0) + FIND_PACKAGE(NepomukCore 0.1.0) +endif() IF(SOPRANO_FOUND AND NepomukCore_FOUND) ADD_DEFINITIONS(-DHAVE_NEPOMUK) -- cgit v1.2.1