[CMake] Finding Qt3 moc and uic when Qt4 is installed in path

Craig Bradney cbradney at zip.com.au
Mon Apr 3 18:37:51 EDT 2006


On Tuesday 04 April 2006 00:07, Craig Bradney wrote:
> Hi,
>
> I'm wondering if anyone has a solution to the problem I'm facing right
> now... ie, on Gentoo Qt3's bin files are in /usr/qt/3/bin and Qt4 ones are
> in /usr/bin. FindQt3.cmake in cmake 2.3.4-20060317 is giving me these...
>
> /usr/qt/3 for $ENV{QTDIR}
> /usr/bin/moc for ${QT_MOC_EXECUTABLE}
> /usr/bin/uic for ${QT_UIC_EXECUTABLE}
> /usr/qt/3/lib/libqt-mt.so for ${QT_QT_LIBRARY}
> /usr/qt/3/include for ${QT_INCLUDE_DIR}
>
> The bins are called moc and uic as looked for by FintQt3.cmake.

Ok.. so a quick hack for now... Adding NO_DEFAULT_PATH to the FIND_PROGRAM 
call for both moc and uic in FindQt3.cmake fixes it here.. but its of course 
only a temporary solution until the next release.

Craig


More information about the CMake mailing list