[cmake-commits] hoffman committed FindQt4.cmake 1.47 1.48
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Oct 13 11:23:48 EDT 2006
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv17694
Modified Files:
FindQt4.cmake
Log Message:
BUG: fix for bug#3898 find qt plugin dir
Index: FindQt4.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindQt4.cmake,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- FindQt4.cmake 4 Oct 2006 14:33:10 -0000 1.47
+++ FindQt4.cmake 13 Oct 2006 15:23:44 -0000 1.48
@@ -75,6 +75,8 @@
# QT_QTTEST_INCLUDE_DIR Path to "include/QtTest"
#
# QT_LIBRARY_DIR Path to "lib" of Qt4
+#
+# QT_PLUGINS_DIR Path to "plugins" for Qt4
#
# For every library of Qt there are three variables:
# QT_QTFOO_LIBRARY_RELEASE, which contains the full path to the release version
@@ -317,6 +319,13 @@
SET(QT_MKSPECS_DIR ${qt_mkspecs_dir} CACHE PATH "The location of the Qt mkspecs")
ENDIF (NOT QT_MKSPECS_DIR)
+ # ask qmake for the plugins directory
+ IF (NOT QT_PLUGINS_DIR)
+ EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE}
+ ARGS "-query QT_INSTALL_PLUGINS"
+ OUTPUT_VARIABLE qt_plugins_dir )
+ SET(QT_PLUGINS_DIR ${qt_plugins_dir} CACHE PATH "The location of the Qt plugins")
+ ENDIF (NOT QT_PLUGINS_DIR)
########################################
#
# Setting the INCLUDE-Variables
More information about the Cmake-commits
mailing list