[cmake-developers] [PATCH 3/3] FindQt4: document cross compilation
Brad King
brad.king at kitware.com
Wed Jul 29 11:08:42 EDT 2015
On 07/29/2015 10:59 AM, Pascal Bach wrote:
> set( CMAKE_FIND_ROOT_PATH /sysroots/arm /sysroots/x86_64 )
> set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
> set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
> set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
> set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
If this is not sufficient to convince FindQt4 to find the right
qmake and libraries then FindQt4 should be fixed to do so rather
than asking the user to set more package-specific variables.
> QT_BINARY_DIR is necessary to find the correct qmake
If the user knows this information then s/he might as well just
set QT_QMAKE_EXECUTABLE directly.
-Brad
More information about the cmake-developers
mailing list