[Cmake] QT_WRAP_UI CMake2.0-2 issue

Julien Jomier jjomier at cs.unc.edu
Tue Jun 29 16:25:08 EDT 2004


Dear developers,

I just updated my CMake to 2.0 patch 2 and found a strange behavior with the
QT_WRAP_UI command.
It seems that if SET(QT_WRAP_UI "YES") is not defined in my CMakeLists.txt
before calling the command QT_WRAP_UI, CMake returns an error.

Here's an example:

--- 
IF(QT_UIC_EXECUTABLE)
  QT_WRAP_UI(PhantomApplicationQt  PhantomApplicationQt_HDRS
             PhantomApplicationQt_SRCS  ${PhantomApplicationQt_GUI_SRCS} )
ENDIF(QT_UIC_EXECUTABLE)
--- failure ---

but

---
IF(QT_UIC_EXECUTABLE)
  SET(QT_WRAP_UI "YES")
  QT_WRAP_UI(PhantomApplicationQt  PhantomApplicationQt_HDRS
             PhantomApplicationQt_SRCS  ${PhantomApplicationQt_GUI_SRCS} )
ENDIF(QT_UIC_EXECUTABLE)
--- success ---

Should I submit this as a bug?

thanks,

Julien



More information about the Cmake mailing list