Bill Hoffman wrote:
>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]/b
>in" $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.

The very first one should be the pkg-config check, on Unix platforms. I 
also guess the very first one on Windows should be the registry check.

$ pkg-config --variable=prefix QtCore
/home/tjmaciei/troll/qt-4.1-build

If Qt is not found using pkg-config on Unix platforms, bail out. It is 
supposed to be found anything else is broken.

-- 
Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway

Attachment: pgpDbcaCvVSVD.pgp
Description: PGP signature

_______________________________________________
Kde-buildsystem mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to