aboutsummaryrefslogtreecommitdiff
path: root/modules/FindQtDBus.cmake
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2006-05-31 13:16:27 +0000
committerDavid Faure <faure@kde.org>2006-05-31 13:16:27 +0000
commit1affb970d8600325503f02bc332719cd249a5fef (patch)
tree8883d7159d4c6b6a39e90d39212175bf656dd1e1 /modules/FindQtDBus.cmake
parent117cb4d48ba9c4618c3bf71f7cb8799e1b189d34 (diff)
downloadextra-cmake-modules-1affb970d8600325503f02bc332719cd249a5fef.tar.gz
extra-cmake-modules-1affb970d8600325503f02bc332719cd249a5fef.tar.bz2
Put the vars in the cache; useful for debugging and for adding "reuse cache" to this module later on.
svn path=/trunk/KDE/kdelibs/; revision=546937
Diffstat (limited to 'modules/FindQtDBus.cmake')
-rw-r--r--modules/FindQtDBus.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/FindQtDBus.cmake b/modules/FindQtDBus.cmake
index ae17513e..8a278786 100644
--- a/modules/FindQtDBus.cmake
+++ b/modules/FindQtDBus.cmake
@@ -2,7 +2,7 @@
# Once done this will define
#
# QDBUS_FOUND - system has QtDBus
-# QDBUS_INCLUDE_DIR - the QtDBus include directory
+# QDBUS_INCLUDE_DIRS - the QtDBus include directories
# QDBUS_LIBRARIES - Link these to use QtDBus
# QDBUS_DEFINITIONS - Compiler switches required for using QtDBus
#
@@ -14,7 +14,6 @@
# Generates interface code from the given XML files.
#
-
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
INCLUDE(UsePkgConfig)
@@ -22,8 +21,8 @@ INCLUDE(UsePkgConfig)
PKGCONFIG("dbus-1" _dbusIncDir _dbusLinkDir _dbusLinkFlags _dbusCflags)
PKGCONFIG("dbus-qt4-1" _qdbusIncDir _qdbusLinkDir _qdbusLinkFlags _qdbusCflags)
-set(QDBUS_DEFINITIONS ${_dbusCflags} ${_qdbusCflags})
-set(QDBUS_INCLUDE_DIRS ${_dbusIncDir} ${_qdbusIncDir})
+set(QDBUS_DEFINITIONS ${_dbusCflags} ${_qdbusCflags} CACHE INTERNAL "Definitions for Qt DBUS")
+set(QDBUS_INCLUDE_DIRS ${_dbusIncDir} ${_qdbusIncDir} CACHE INTERNAL "Include dirs for Qt DBUS")
FIND_LIBRARY(QDBUS_LIBRARIES NAMES dbus-qt4-1
PATHS ${_qdbusLinkDir}