[CMake] Found a possible bug

John Biddiscombe biddisco at cscs.ch
Tue Jun 14 06:02:52 EDT 2005


I'm not sure if I'm using the commands right, but this...

SET(dialog_SRCS
  main.cpp
)

SET(dialog_HEADERS
  dialog.ui.h
)

SET(dialog_UI_SRCS
  dialog.ui
)

SET(dialog_MOC_SRCS "")

QT_WRAP_UI(
  dialog
  dialog_HEADERS
  dialog_SRCS
  ${dialog_UI_SRCS}
)

QT_WRAP_CPP(
  dialog
  dialog_SRCS
  ""
)

Causes a build fail with recent CVS cmake. The QT_WRAP_CPP command can't 
handle no third parameters. I added a line
      if (srcName=="") continue;
to
cmQTWrappCppcommand at line 61. which made the problems go away.

Probably I'm using it incorrecty - yes?

JB



More information about the CMake mailing list