diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2010-07-06 20:37:16 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2010-07-06 20:37:16 (GMT) |
commit | 7fd3739ce75bfb94d49716739c965c12fd7eaa5b (patch) | |
tree | 6e26b1a693b739a5c76c28e1ee372b9c30ef0519 /Modules/FindQt4.cmake | |
parent | ff888dd648cbb5c3d313d11549200fea5569edbb (diff) | |
download | CMake-7fd3739ce75bfb94d49716739c965c12fd7eaa5b.zip CMake-7fd3739ce75bfb94d49716739c965c12fd7eaa5b.tar.gz CMake-7fd3739ce75bfb94d49716739c965c12fd7eaa5b.tar.bz2 |
Find correct Qt plugins for cross-compiling.
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r-- | Modules/FindQt4.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 1bdf2de..5f0bfe7 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -717,7 +717,13 @@ IF (QT4_QMAKE_FOUND) OUTPUT_VARIABLE qt_plugins_dir ) # make sure we have / and not \ as qmake gives on windows FILE(TO_CMAKE_PATH "${qt_plugins_dir}" qt_plugins_dir) - SET(QT_PLUGINS_DIR ${qt_plugins_dir} CACHE PATH "The location of the Qt plugins" FORCE) + SET(QT_PLUGINS_DIR NOTFOUND) + foreach(qt_cross_path ${CMAKE_FIND_ROOT_PATH}) + set(qt_cross_paths ${qt_cross_paths} "${qt_cross_path}/plugins") + endforeach(qt_cross_path) + FIND_PATH(QT_PLUGINS_DIR NAMES accessible imageformats sqldrivers codecs designer + HINTS ${qt_cross_paths} ${qt_plugins_dir} + DOC "The location of the Qt plugins") ENDIF (QT_LIBRARY_DIR AND NOT QT_PLUGINS_DIR OR QT_QMAKE_CHANGED) # ask qmake for the translations directory |