[CMake] Backslashes in QT_MOC_EXECUTABLE and QT_UIC_EXECUTABLE

Moreland, Kenneth kmorel at sandia.gov
Fri May 5 13:27:45 EDT 2006


I just ran into the same and John Biddiscombe where vtkConfigQt.cmake
has backslashes in some strings.  After investigation, I learned that
the problem is that FindQt4.cmake makes two versions of the
QT_MOC_EXECUTABLE and QT_UIC_EXECUTABLE variables: a cached version and
a non-cashed version.  The cached version, which the user sees, has the
filepath backslashes automatically changed to forward slashes.  However,
CMake apparently prefers the non-cached version while it is in scope.

The attached patch should fix the problem.  It renames the non-cached
versions of the variable so that the cached version is always used.

-Ken

   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********  
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      fax:   (505) 845-0833
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindQt4.cmake.patch
Type: application/octet-stream
Size: 1177 bytes
Desc: FindQt4.cmake.patch
Url : http://public.kitware.com/pipermail/cmake/attachments/20060505/a5d88de1/FindQt4.cmake.obj


More information about the CMake mailing list