[CMake] [PATCH] Qt cross compile with cmake v2.8.4

Alexander Neundorf a.neundorf-work at gmx.net
Thu Mar 10 16:00:00 EST 2011


On Thursday 10 March 2011, Markus Rathgeb wrote:
> > Ok, and what was the error you were getting?
> > Is this a problem because you have Qt installed in the same relative
> > location from the non-rooted and rooted directory?
>
> QT_LIBRARY_DIR, QT_HEADERS_DIR, ... are detected fine in and with the
> given root path.
> Then FIND_PATH is used to find the modules.
> As paths that should be used to find the specified directory are
> (e.g.) "${QT_HEADERS_DIR}/${QT_MODULE}" used.
> We have to remember, that "${QT_HEADERS_DIR}" already contain the
> ${CMAKE_FIND_ROOT_PATH}.
>
> In the "non patched version" all paths added on FIND_PATH will be
> prefixed with "CMAKE_FIND_ROOT_PATH" again.
> On the "patched version" this will be prevented by
> "NO_CMAKE_FIND_ROOT_PATH"

Yes, I think this definitely makes sense.
"${QT_HEADERS_DIR}/${QT_MODULE}" is supposed to be the directory where the 
headers are, nothing should be changed about it anymore.

Alex


More information about the CMake mailing list