Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-31 Thread Pascal Bach
Am 30.07.2015 um 17:20 schrieb Clinton Stimpson: > On Thursday, July 30, 2015 10:56:02 AM Brad King wrote: >> On 07/30/2015 09:29 AM, Pascal Bach wrote: >>> CMAKE_FIND_ROOT_PATH_MODE would then need to be extended to support >>> something like NATIVE and TARGET that one could use to choose where

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-30 Thread Clinton Stimpson
On Thursday, July 30, 2015 10:56:02 AM Brad King wrote: > On 07/30/2015 09:29 AM, Pascal Bach wrote: > > CMAKE_FIND_ROOT_PATH_MODE would then need to be extended to support > > something like NATIVE and TARGET that one could use to choose where > > to look for files. > > This way every find_* call

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-30 Thread Brad King
On 07/30/2015 09:29 AM, Pascal Bach wrote: > CMAKE_FIND_ROOT_PATH_MODE would then need to be extended to support > something like NATIVE and TARGET that one could use to choose where > to look for files. > This way every find_* call could explicitly tell if it wants a host > or a target version. A

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-30 Thread Pascal Bach
Hi again Am 30.07.2015 um 10:54 schrieb Pascal Bach: > Hi Clint, Hi Brad >> What I want to avoid is users thinking that what you are proposing overrides >> any other way of finding Qt when cross compiling. >> >> The wording you propose is "To find Qt in a cross compile environment set >> the >>

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-30 Thread Pascal Bach
Hi Clint, Hi Brad > What I want to avoid is users thinking that what you are proposing overrides > any other way of finding Qt when cross compiling. > > The wording you propose is "To find Qt in a cross compile environment set the > following variables" > However there are users for which setting

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-29 Thread Clinton Stimpson
On Wednesday, July 29, 2015 04:59:57 PM Pascal Bach wrote: > Hi Clint > > Am 29.07.2015 um 16:47 schrieb Clinton Stimpson: > > On Wednesday, July 29, 2015 04:05:41 PM Pascal Bach wrote: > >> Hi Clint > >> > >> Am 29.07.2015 um 15:45 schrieb Clinton Stimpson: > >>> Hi Pascal, > >>> > >>> Thanks f

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-29 Thread Brad King
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 )

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-29 Thread Pascal Bach
Hi Clint Am 29.07.2015 um 16:47 schrieb Clinton Stimpson: > On Wednesday, July 29, 2015 04:05:41 PM Pascal Bach wrote: >> Hi Clint >> >> Am 29.07.2015 um 15:45 schrieb Clinton Stimpson: >>> Hi Pascal, >>> >>> Thanks for the patches. >>> >>> Can you share with us why setting CMAKE_FIND_ROOT_PATH do

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-29 Thread Clinton Stimpson
On Wednesday, July 29, 2015 04:05:41 PM Pascal Bach wrote: > Hi Clint > > Am 29.07.2015 um 15:45 schrieb Clinton Stimpson: > > Hi Pascal, > > > > Thanks for the patches. > > > > Can you share with us why setting CMAKE_FIND_ROOT_PATH does not work, or > > how this new method compares? > > > > Fo

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-29 Thread Clinton Stimpson
Hi Pascal, Thanks for the patches. Can you share with us why setting CMAKE_FIND_ROOT_PATH does not work, or how this new method compares? For example, in the toolchain file: SET(CMAKE_FIND_ROOT_PATH /path/to/Qt ...) Clint On Wednesday, July 29, 2015 02:32:48 PM Pascal Bach wrote: > --- > Mo

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-29 Thread Pascal Bach
Hi Clint Am 29.07.2015 um 15:45 schrieb Clinton Stimpson: > Hi Pascal, > > Thanks for the patches. > > Can you share with us why setting CMAKE_FIND_ROOT_PATH does not work, or how > this new method compares? > > For example, in the toolchain file: > SET(CMAKE_FIND_ROOT_PATH /path/to/Qt ...) The

[cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-29 Thread Pascal Bach
--- Modules/FindQt4.cmake | 20 1 file changed, 20 insertions(+) diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 9d03378..64c06e1 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -29,6 +29,26 @@ # for a particular executable, set the ``QT4_