Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Zach Laine
On Tue, May 19, 2009 at 3:07 PM, Alexander Neundorf 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

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Alexander Neundorf
On Tuesday 19 May 2009, Zach Laine wrote: > On Tue, May 19, 2009 at 9:11 AM, Andreas Pakulat wrote: > > Thats what Clinton did, so how about trying exactly what he wrote? > > Ok, removing the two message() lines (which is exactly what Clinton > wrote) produces: > > -- Found Qt-Version 4.3.5 > -- C

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Clinton Stimpson
Andreas Pakulat wrote: On 19.05.09 09:42:26, 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. Well, judging by my brains history of this list, you're certain

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Andreas Pakulat
On 19.05.09 09:42:26, 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. Well, judging by my brains history of this list, you're certainly the first to have this par

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Clinton Stimpson
Zach Laine wrote: On Tue, May 19, 2009 at 9:11 AM, Andreas Pakulat wrote: Thats what Clinton did, so how about trying exactly what he wrote? Ok, removing the two message() lines (which is exactly what Clinton wrote) produces: -- Found Qt-Version 4.3.5 -- Configuring done -- Generatin

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Zach Laine
On Tue, May 19, 2009 at 9:11 AM, Andreas Pakulat wrote: > Thats what Clinton did, so how about trying exactly what he wrote? Ok, removing the two message() lines (which is exactly what Clinton wrote) produces: -- Found Qt-Version 4.3.5 -- Configuring done -- Generating done -- Build files have b

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Andreas Pakulat
On 19.05.09 08:40:32, Zach Laine wrote: > On Tue, May 19, 2009 at 12:24 AM, Clinton Stimpson > wrote: > > What about a minimal CMakeLists.txt file? > > === > > find_package(Qt4) > > message(${QT_INCLUDE_DIR}) > > === > > When I run this: > > > find_package(Qt4) > include(${QT_U

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Zach Laine
On Tue, May 19, 2009 at 12:24 AM, Clinton Stimpson wrote: > The only way I know how to do that is to include both Qt4 and Qt3. The only way to do what? I'm just trying to use Qt 4.x, for any x, and so far can't. > find_package(Qt3) > find_package(Qt4) > > which is not supported. > You eve

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-18 Thread Clinton Stimpson
Zach Laine wrote: On Mon, May 18, 2009 at 4:57 PM, Clinton Stimpson wrote: # temp set of path to find desired Qt export PATH=/usr/local/Trolltech/Qt-4.3.5/bin:$PATH # create build dir mkdir build ; cd build # run cmake cmake ../ # make make As I originally said, I've already tried tha

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-18 Thread Zach Laine
On Mon, May 18, 2009 at 4:57 PM, Clinton Stimpson wrote: > # temp set of path to find desired Qt > export PATH=/usr/local/Trolltech/Qt-4.3.5/bin:$PATH > # create build dir > mkdir build ; cd build > # run cmake > cmake ../ > # make > make As I originally said, I've already tried that: >> I've re

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-18 Thread Clinton Stimpson
find_package(Qt4) include(${QT_USE_FILE}) qt4_wrap_cpp(MOC_FILES slidersgroup.h window.h) add_executable(myexe main.cpp slidersgroup.cpp window.cpp ${MOC_FILES}) # temp set of path to find desired Qt export PATH=/usr/local/Trolltech/Qt-4.3.5/bin:$PATH # create build dir mkdir build ; cd build #

[CMake] FindQt4 stubbornly finding Qt3

2009-05-18 Thread Zach Laine
I'm having a problem with FindQt*. I have numerous versions of Qt4 installed: usr/local/Trolltech/Qt-4.1.1 /usr/local/Trolltech/Qt-4.1.5 /usr/local/Trolltech/Qt-4.2.3 /usr/local/Trolltech/Qt-4.3.5 /usr/local/Trolltech/Qt-4.4.3 /usr/local/Trolltech/Qt-4.5.0-rc1 As well as the stock versions of Qt