Re: [CMake] Qt find package location

2009-03-12 Thread A. Maitland Bottoms
Alexander Neundorf writes: > So, if QT_QT_LIBRARY is set (which exists only for Qt3, but not for Qt4), it > stops, because you should not use both within one project. > If you want to work around this, unset QT_QT_LIBRARY. Exactly! The setting of QT_QMAKE_EXECUTABLE is not idempotent. It see

Re: [CMake] Qt find package location

2009-03-12 Thread Alexander Neundorf
On Thursday 12 March 2009, A. Maitland Bottoms wrote: > david.cole at kitware.com (David Cole) writes: > > If you set QT_QMAKE_EXECUTABLE to the full path to a qmake, *that* qmake > > is used above all else to find the right Qt. Regardless of QTDIR or > > PATH. Setting QT_QMAKE_EXECUTABLE is *th

[CMake] Qt find package location

2009-03-12 Thread A. Maitland Bottoms
david.cole at kitware.com (David Cole) writes: > If you set QT_QMAKE_EXECUTABLE to the full path to a qmake, *that* qmake is > used above all else to find the right Qt. Regardless of QTDIR or PATH. > Setting QT_QMAKE_EXECUTABLE is *the* official way to tell CMake where the Qt > that you want is

Re: [CMake] Qt find package location

2009-03-11 Thread Alexander Neundorf
On Wednesday 11 March 2009, Boudewijn Rempt wrote: > On Wed, 11 Mar 2009, Doug Henry wrote: > > I have multiple Qt installations and would like to know how I guide the > > find_package(Qt4) command to find the correct one. I assume there is a > > variable I can set which defines the search path, w

Re: [CMake] Qt find package location

2009-03-11 Thread David Cole
Or set it from a ctest -S script,or set it in the cmake-gui or ccmake UI On Wed, Mar 11, 2009 at 2:36 PM, David Cole wrote: > No env var, use -D > > > On Wed, Mar 11, 2009 at 2:35 PM, Michael Jackson < > mike.jack...@bluequartz.net> wrote: > >> Just to be clear on that, I know QT_QMAKE_EXECUTAB

Re: [CMake] Qt find package location

2009-03-11 Thread David Cole
No env var, use -D On Wed, Mar 11, 2009 at 2:35 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > Just to be clear on that, I know QT_QMAKE_EXECUTABLE is a CMake variable > but is there a corresponding environment variable for that? > > or should be we doing cmake > -DQT_QMAKE_EXECUTABL

Re: [CMake] Qt find package location

2009-03-11 Thread Michael Jackson
Just to be clear on that, I know QT_QMAKE_EXECUTABLE is a CMake variable but is there a corresponding environment variable for that? or should be we doing cmake -DQT_QMAKE_EXECUTABLE:PATH=/usr/local/qt/ bin/qmake ../ --- Mike Jackson www.bluequartz.net On Mar 11, 2009, at

Re: [CMake] Qt find package location

2009-03-11 Thread David Cole
If you set QT_QMAKE_EXECUTABLE to the full path to a qmake, *that* qmake is used above all else to find the right Qt. Regardless of QTDIR or PATH. Setting QT_QMAKE_EXECUTABLE is *the* official way to tell CMake where the Qt that you want is. All else is a "find-and-guess" game if you have multiple

Re: [CMake] Qt find package location

2009-03-11 Thread Michael Jackson
You can always do: export QTDIR=/home/dhenry/qtsdk-2009.01/qt export PATH=$QTDIR/bin:$PATH to put the desired qmake as the first one found. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] Qt find package location

2009-03-11 Thread Doug Henry
Looks like QTDIR is checked last, so it will always use the one found in my path. I was (incorrectly) expecting QTDIR to be an override, but it functions more like a safety net. -thanks On Wed, Mar 11, 2009 at 1:34 PM, Doug Henry > wrote: > thanks for the responses. I may have missed a detai

Re: [CMake] Qt find package location

2009-03-11 Thread Doug Henry
thanks for the responses. I may have missed a detail somewhere. I set QTDIR (environment and I tried in cmake file) but it always finds the same version of Qt. Below is a listing of my attempts. cmake always finds version 4.3.4, which is installed in /tools/lin64, but my QTDIR variable points t

Re: [CMake] Qt find package location

2009-03-11 Thread Pau Garcia i Quiles
On Wed, Mar 11, 2009 at 5:48 PM, Boudewijn Rempt wrote: > On Wed, 11 Mar 2009, Doug Henry wrote: > >> I have multiple Qt installations and would like to know how I guide the >> find_package(Qt4) command to find the correct one.  I assume there is a >> variable I can set which defines the search pa

Re: [CMake] Qt find package location

2009-03-11 Thread Boudewijn Rempt
On Wed, 11 Mar 2009, Doug Henry wrote: > I have multiple Qt installations and would like to know how I guide the > find_package(Qt4) command to find the correct one. I assume there is a > variable I can set which defines the search path, which will allow me to > change the path to find a differen

[CMake] Qt find package location

2009-03-11 Thread Doug Henry
I have multiple Qt installations and would like to know how I guide the find_package(Qt4) command to find the correct one. I assume there is a variable I can set which defines the search path, which will allow me to change the path to find a different installed version. Thanks. :doug ___