How to find qmake to find QT4
    Bill Hoffman 
    bill.hoffman at kitware.com
       
    Tue Mar 21 14:16:25 CET 2006
    
    
  
In the FindQ4.cmake in CMake, I look for qmake like this:
1. CMAKE_PROGRAM_PATH  - environment variable
2. CMAKE_PROGRAM_PATH - cmake variable (specified with a -D on the command line)
3. PATH - environment variable
4. CMAKE_SYSTEM_PROGRAM_PATH  - this is a per platform set of directories specifed
in cmake Platform directory
5. A list of common locations:
 "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin"
  "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin"
  $ENV{QTDIR}/bin
  ${QT4_PATHS}  # some hard coded places where qt is usually found
In the FindQt4.cmake in kdelibs, it looks for qmake by in this order:
5.
1.
2.
3. 
4.
The end result is that the qmake in your PATH is not searched first,
for example if QTDIR is set, then it will find that one over the one
in the PATH.   I thought with QT4 the PATH was supposed to be first.
There is a post on the kde-core list talking about this problem.
-Bill
    
    
More information about the Kde-buildsystem
mailing list