Hi! The file /usr/share/cmake/Modules/FindQt4.cmake has a hug bug that does not let cmake even use the file. At this point in the file: MACRO(QT4_APPEND_INCLUDES_FLAG FLAG) IF(${FLAG}) SET(QT_INCLUDES ${QT_INCLUDES} "${${FLAG}}") ENDIF(${FLAG}) ENDMACRO(APPEND_INCLUDE_FLAG) As anyone can see, this is bugged. The correct version is of course: MACRO(QT4_APPEND_INCLUDES_FLAG FLAG) IF(${FLAG}) SET(QT_INCLUDES ${QT_INCLUDES} "${${FLAG}}") ENDIF(${FLAG}) ENDMACRO(QT4_APPEND_INCLUDES_FLAG) (note that both the QT4_ prefix and the S at the end of INCLUDES is missing) The cmake actually will not compile the CMakeLists.txt file with the line "find_package(Qt4 REQUIRED)" in it until this bug is corrected (i.e. I think even KDE4 will not compile :O ) Please correct! Thx in advance, Mate SOOS
Don't restrict bugs without any reason. Just leave the checkboxes alone.
Have you contacted the cmake developers about this? I don't think I'm qualified to make this decision.
The newest cmake version (2.4-patch 2) actually works and of course this bug is corrected there. By the way, I just noticed that even with the bug I corrected, the old (i.e. stable) cmake will not 'eat' the FindQt4.cmake, but it will only report 'minor' errors (and no Qt4 application will compile). So, maybe it is not a good idea to correct this bug: just make the 2.4-patch 2 'stabe', because cmake is evolving at a very rapid rate, and this cmake is mostly unusable for what cmake is most used for nowadays: cross-compiling KDE4, and Qt4 applications in general. Just my 2 cents. M
The newest cmake version (2.4-patch 2) actually works and of course this bug is corrected there. By the way, I just noticed that even with the bug I corrected, the old (i.e. stable) cmake will not 'eat' the FindQt4.cmake, but it will only report 'minor' errors (and no Qt4 application will compile). So, maybe it is not a good idea to correct this bug: just make the 2.4-patch 2 'stabe', because cmake is evolving at a very rapid rate, and this cmake is mostly unusable for what cmake is most used for nowadays: cross-compiling KDE4, and Qt4 applications in general. Just my 2 cents. Máté
thanks, will be solved with stabilizing in bug 155307
bugzie
This bug is fixed with new version of cmake.