[kdelibs] cmake/modules: Provide NEPOMUK_INCLUDE_DIRS and deprecate NEPOMUK_INCLUDE_DIR

Michael Jansen kde at michael-jansen.biz
Wed Jun 29 23:25:47 CEST 2011


Git commit 8893ac7c966972f60c34d030db476b5187392820 by Michael Jansen.
Committed on 29/06/2011 at 17:08.
Pushed by mjansen into branch 'master'.

Provide NEPOMUK_INCLUDE_DIRS and deprecate NEPOMUK_INCLUDE_DIR

As suggested by the cmake readme.txt.

CCMAIL: kde-buildsystem at kde.org

M  +8    -2    cmake/modules/FindNepomuk.cmake     

http://commits.kde.org/kdelibs/8893ac7c966972f60c34d030db476b5187392820

diff --git a/cmake/modules/FindNepomuk.cmake b/cmake/modules/FindNepomuk.cmake
index dccc790..2548b66 100644
--- a/cmake/modules/FindNepomuk.cmake
+++ b/cmake/modules/FindNepomuk.cmake
@@ -1,7 +1,8 @@
 # Once done this will define
 #
 #  NEPOMUK_FOUND - system has Nepomuk
-#  NEPOMUK_INCLUDE_DIR - the Nepomuk include directory
+#  NEPOMUK_INCLUDE_DIRS - all include directories needed to compile Nepomuk
+#  NEPOMUK_INCLUDE_DIR - the Nepomuk include directory (do not use. only for compatibility)
 #  NEPOMUK_LIBRARIES - Link these to use Nepomuk
 #  NEPOMUK_QUERY_LIBRARIES - Link these to use Nepomuk query
 #  NEPOMUK_UTILS_LIBRARIES - Link these to use Nepomuk utils
@@ -39,6 +40,11 @@ find_path(NEPOMUK_INCLUDE_DIR
   ${INCLUDE_INSTALL_DIR}
   )
 
+set(NEPOMUK_INCLUDE_DIRS ${NEPOMUK_INCLUDE_DIR}
+  CACHE
+  STRING
+  "include directories needed for nepomuk")
+
 find_library(NEPOMUK_LIBRARIES
   NAMES
   nepomuk
@@ -70,7 +76,7 @@ find_file(NEPOMUK_ADDONTOLOGYCLASSES_FILE NepomukAddOntologyClasses.cmake
 
 include("${NEPOMUK_ADDONTOLOGYCLASSES_FILE}" OPTIONAL)
 
-mark_as_advanced(NEPOMUK_INCLUDE_DIR NEPOMUK_LIBRARIES NEPOMUK_QUERY_LIBRARIES NEPOMUK_UTILS_LIBRARIES NEPOMUK_ADDONTOLOGIES_FILE)
+mark_as_advanced(NEPOMUK_INCLUDE_DIR NEPOMUK_INCLUDE_DIRS NEPOMUK_LIBRARIES NEPOMUK_QUERY_LIBRARIES NEPOMUK_UTILS_LIBRARIES NEPOMUK_ADDONTOLOGIES_FILE)
 
 include(FindPackageHandleStandardArgs)
 # List all nepomuk and also all necessary soprano variables here, to make it



More information about the Kde-buildsystem mailing list