[CMake] FindQt4 regression (changing QT_QMAKE_EXECUTABLE)

Clinton Stimpson clinton at elemtech.com
Thu Dec 5 18:07:57 EST 2013


On Thursday, December 05, 2013 11:33:58 PM Simon Sasburg wrote:
> I've run into a problem after updating my cmake in using the FindQt4 module.
> 
> It used to be the case that when QT_QMAKE_EXECUTABLE was changed by the
> user or by a SET(... FORCE) command, all the derived cache entries would be
> refreshed, however this does not work anymore.
> 
> The cause seems to be git commit 21123416b4c2d49fe981279b10fbc78c8d07c491
> which removes the following code:
> 
>   if(QT_QMAKE_EXECUTABLE_LAST)
>     string(COMPARE NOTEQUAL "${QT_QMAKE_EXECUTABLE_LAST}"
> "${QT_QMAKE_EXECUTABLE}" QT_QMAKE_CHANGED)
>   endif()
>   set(QT_QMAKE_EXECUTABLE_LAST "${QT_QMAKE_EXECUTABLE}" CACHE INTERNAL ""
> FORCE)
> 
> I've attached a patch that restores this code so this works again, could
> this be included in the next cmake release?
> 
> Best regards,
> Simon

Thanks!  I noticed this problem recently too.

I've put it in for you.
http://cmake.org/gitweb?p=cmake.git;a=commit;h=4ee3b655

Clint


More information about the CMake mailing list