[CMake] FindQt4 regression (changing QT_QMAKE_EXECUTABLE)

Simon Sasburg simon.sasburg at gmail.com
Thu Dec 5 17:33:58 EST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131205/3895ded1/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-FindQt4-Restore-ability-to-handle-a-changed-QT_QMAKE.patch
Type: application/octet-stream
Size: 989 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131205/3895ded1/attachment-0001.obj>


More information about the CMake mailing list