[CMake] [PATCH] improvement for FindQt4.cmake

Alexander Neundorf a.neundorf-work at gmx.net
Tue Jan 3 16:51:45 EST 2006


> --- Ursprüngliche Nachricht --- 
> Von: "William A. Hoffman" <billlist at nycap.rr.com> 
> An: Alexander Neundorf <a.neundorf-work at gmx.net>, cmake at www.cmake.org 
> Betreff: Re: [CMake] [PATCH] improvement for FindQt4.cmake 
> Datum: Tue, 03 Jan 2006 16:23:36 -0500 
>  
> At 04:09 PM 1/3/2006, Alexander Neundorf wrote: 
> >Hi,  
> >  
>  
> ... 
>  
> >Is it intentional that FIND_PROGRAM() at first searches the system 
paths  
> >and only afterwards the additional paths are checked ?  
> >This had here the effect that /usr/bin/qmake was found (which is Qt 3)  
> >instead of /usr/lib/qt4/bin/qmake, although QTDIR wa set correctly  
> >to /usr/lib/qt4. That's the code in FindQt4.cmake:  
> >  
>  
> This is intentional, the idea is that cmake should use the same tools 
> that are found by default on the command line.   The idea being, if you 
> are going to run a tool from the shell, then it will be in the PATH. 
>  
> Even if I set QTDIR, if I run qmake from a shell it will pick the one 
> in the PATH, and CMake should do the same. 
 
Hmm, actually I would have expected that if I have a tool which searches 
for Qt stuff that it would at first look at QTDIR, and then at other 
options, since QTDIR is there for exactly this purpose, specifying where 
Qt is installed. 
 
Alex 
 

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl


More information about the CMake mailing list