From 1affb970d8600325503f02bc332719cd249a5fef Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 31 May 2006 13:16:27 +0000 Subject: 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 --- modules/FindQtDBus.cmake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/FindQtDBus.cmake') 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} -- cgit v1.2.1