[CMake] FIND_PROGRAM and qt4
Filipe Sousa
filipe at ipb.pt
Wed Sep 6 07:22:44 EDT 2006
frederic heem wrote:
> Hi,
> Here is the problem, qt3 is installed by the distribution, qt4 has been
> manually installed. An application which want to use qt4 will set QTDIR to
> the directory where qt4 is installed.
> The macro FIND_PROGRAM found the wrong qmake e.g /usr/lib/qt-3.3/bin/qmake,
> the reason is that FIND_PROGRAM search first the default path given by the
> variable PATH and then ${QTDIR}/bin. FIND_PROGRAM shall search first
> ${QTDIR}/bin and then the default path.
> A kludge would be to add ${QTDIR}/bin first in the PATH. Another kludge would
> be to modified FIND_PROGRAM and add the option NO_DEFAULT_PATH. IMHO, these
> are not long term solution.
$ cmake --help-command find_program
...
FIND_PROGRAM(
<VAR>
name | NAMES name1 [name2 ...]
PATHS path1 [path2 ... ENV var]
[PATH_SUFFIXES suffix1 [suffix2 ...]]
[DOC "cache documentation string"]
[NO_DEFAULT_PATH]
[NO_CMAKE_ENVIRONMENT_PATH]
[NO_CMAKE_PATH]
[NO_SYSTEM_ENVIRONMENT_PATH]
[NO_CMAKE_SYSTEM_PATH]
)
> It's the second time I have problem with the behavior of searching directory,
> the first one was with the macro FIND_PATH.
--
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20060906/7f83163d/signature.pgp
More information about the CMake
mailing list