[CMake] error with FindQt4.cmake (on master)

Arnaud GELAS arnaud_gelas at hms.harvard.edu
Wed Feb 23 16:38:38 EST 2011


On 02/23/2011 04:35 PM, Clinton Stimpson wrote:
> On Wednesday, February 23, 2011 02:27:29 pm Arnaud GELAS wrote:
>> On 02/23/2011 04:26 PM, Clinton Stimpson wrote:
>>> On Wednesday, February 23, 2011 02:12:12 pm Arnaud GELAS wrote:
>>>> Hi all,
>>>>
>>>>
>>>> I have just pulled from master, and in my project I can't get the
>>>> QT_VERSION_MINOR
>>>>
>>>>
>>>> Here is what I get when configuring my project:
>>>>
>>>> -- Found Qt4: /usr/bin/qmake-qt4 (found version "4.7.1")
>>>>
>>>> CMake Error at CMakeLists.txt:446 (MESSAGE):
>>>>
>>>> GoFigure2 requires Qt4.5 (or newer version) to be installed
>>>>
>>>>
>>>> QT_VERSION_MAJOR and QT_VERSION_MINOR are empty...
>>>>
>>>>
>>>> It was working before (with previous master version)...
>>>>
>>>>
>>>> Should I track down this error with 'git bisect' or anyone know what
>>>> could be wrong?
>>> No need for a git bisect.  Now that you mention this, I know which commit
>>> did this (it was merged into master yesterday), and I can look at it.
>>>
>>> Also, you could change your CMakeLists.txt to use
>>> find_package(Qt4 4.5)
>>> to have it check the minimum version number for you.
>> Is find_package( Qt4 4.5 ) backward compatible?
>> Will it work with cmake 2.8.2 and 2.8.3 ?
> Its been there for a while.  2.8.0 supported it.
Great! thanks!


More information about the CMake mailing list