[CMake] FindQt4.cmake, which one ?

William A. Hoffman billlist at nycap.rr.com
Thu Oct 5 08:29:43 EDT 2006


At 06:58 AM 10/5/2006, frederic heem wrote:
>Hi,
>After upgrading from cmake 2.4.3 to cmake in cvs, cmake aborts because the 
>macro  QT4_ADD_DBUS_INTERFACE. Indeed, FindQt4.cmake was downloaded from the 
>kde project and the FindQt4.cmake from cvs does not contain this macro. 
>Basically, all FindQt4.cmake are different and incompatible. 
>At the moment, to ensure one application will compile across different 
>distributions and with different cmake, this only choice is to copy all 
>necessary FindXXX.cmake to one application directory and set the variable 
>CMAKE_MODULE_PATH  to this directory, for instance.
>SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
>Is there any other (better) solution for this problem ?
>Frederic

QT4_ADD_DBUS_INTERFACE was not part of 2.4.3 FindQt4.cmake so it did
not get removed in cvs.  You must have been using the FindQt4.cmake that is
part of kde.   Perhaps Alex can work on merging the kde FindQt4 with the cvs
cmake FindQt4.

-Bill



More information about the CMake mailing list