[CMake] [PATCH] Qt cross compile with cmake v2.8.4
Markus Rathgeb
maggu2810 at googlemail.com
Wed Mar 9 13:16:46 EST 2011
Hello!
I am using cmake for cross compiling of several Qt applications.
To do this with cmake v2.8.4 I have to change the FindQt4.cmake file.
The variables QT_LIBRARY_DIR, QT_HEADERS_DIR, QT_BINARY_DIR (...) will
already be prefixed with the CMAKE_FIND_ROOT_PATH variable value.
For cross compiling CMAKE_FIND_ROOT_PATH_MODE_LIBRARY and
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE should be set to ONLY (IMHO).
FindQt4 is using NO_DEFAULT_PATH for finding libraries, headers and
binaries, so I had also to add NO_CMAKE_FIND_ROOT_PATH to that calls.
Could you have a look at the attached patch?
Greats,
Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-2.8.4_qt_cross_compile.patch
Type: application/octet-stream
Size: 10925 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110309/a392fd0d/attachment.obj>
More information about the CMake
mailing list