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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake