[oe] CMake and Qt4
Matthew Dombroski
matthew at 4d-electronics.co.nz
Tue Aug 25 04:46:56 UTC 2009
Hi,
The FindQt4.cmake distributed with cmake (for some time now) is unable
to find the libs installed by qt4e (I haven't tried qt4x11).
This is because the libs installed by openembedded use an unusual naming
convention that isnt known in FindQt4.cmake.
The below patch fixes the problem.
~Matt
diff -rNuap cmake-a/Modules/FindQt4.cmake cmake-b/Modules/FindQt4.cmake
--- cmake-a/Modules/FindQt4.cmake 2009-02-22 09:36:50.000000000 +1300
+++ cmake-b/Modules/FindQt4.cmake 2009-08-25 16:24:25.560194623 +1200
@@ -642,7 +642,7 @@ IF (QT4_QMAKE_FOUND)
FOREACH(QT_MODULE ${QT_MODULES})
STRING(TOUPPER ${QT_MODULE} _upper_qt_module)
FIND_LIBRARY(QT_${_upper_qt_module}_LIBRARY_RELEASE
- NAMES ${QT_MODULE} ${QT_MODULE}4
+ NAMES ${QT_MODULE} ${QT_MODULE}E ${QT_MODULE}4
PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH
)
FIND_LIBRARY(QT_${_upper_qt_module}_LIBRARY_DEBUG
More information about the Openembedded-devel
mailing list