[CMake] [PATCH] improvement for FindQt4.cmake

William A. Hoffman billlist at nycap.rr.com
Tue Jan 3 16:23:36 EST 2006


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.
 
-Bill



More information about the CMake mailing list