summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
1 files 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)