On 2009-05-25 13:40+1200 Matthew Huck wrote:


Hi,

 Is there a way to specify to FIND_PACKAGE (when in Module mode) a path on
which to find Qt4, we have a system that has Qt3 (hence qmake) installed as
a system package, and we have build Qt4 in our sandbox, and would like CMake
to find that instead of Qt3. Before calling FIND_PACKAGE we set QTDIR to the
correct path of the built QT4 sandbox, but it still finds the system qt3
one.

 Any attempt to tweak the FIND_PACKAGE line makes it go to a CONFIG mode and
then it just doesn’t work.

 

 Any ideas?

My experience is that you can cleanly distinguish between various Qt4 versions
by simply putting qmake for the version you want first on your PATH.  For
example, right now I have my PATH adjusted so that

softw...@raven> which qmake
/home/software/qtsdk-2009.02/qt/bin/qmake

so this downloadable SDK for Qt-4.5.1 is the one that is used by CMake
rather than my system version of Qt4.

I am pretty sure this PATH adjustment idea will also work to cleanly
distinguish between Qt4 and Qt3.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to