[CMake] FindQt4 stubbornly finding Qt3

Zach Laine whatwasthataddress at gmail.com
Tue May 19 16:14:44 EDT 2009


On Tue, May 19, 2009 at 3:07 PM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> Just to check for the simple things: you do this with a clean build tree, i.e.
> there is no already existing CMakeCache.txt in the directory, which already
> has QT_INCLUDE_DIR set to /usr/lib/qt3/include ?
> This would keep cmake from searching again.

Sorry, I thought this went to the list, but I sent it to Clinton.  The
problem is solved:

On Tue, May 19, 2009 at 10:05 AM, Zach Laine
<whatwasthataddress at gmail.com> wrote:
> On Tue, May 19, 2009 at 9:56 AM, Clinton Stimpson <clinton at elemtech.com> wrote:
>> Zach Laine wrote:
>>> As for debugging FindQt4.cmake, surely I'm not the only person ever to
>>> try to use FindQt4 with qt3-devel and qt4-devel, plus another
>>> user-installed Qt version.  If it's finding the wrong qmake, it's
>>> surely my fault for using it wrong, not the FindQt4.cmake file.  I'm
>>> just trying to figure out the script-fu necessary to get it to play
>>> nicely.
>>>
>>> Does anyone know what the magic incantation is?
>
> Well, it looks like the magic was deleting the CMakeCache.txt file.
> Sigh.  I'm new to CMake.  I knew I had to be doing something
> boneheaded.  When should I delete that file and when shouldn't I?  I
> kind of assumed that changes to CMakeLists.txt followed by "cmake ."
> would just work, but apparently not.
>
> Zach Laine


More information about the CMake mailing list