aboutsummaryrefslogtreecommitdiff
path: root/modules/FindQt4.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-04-07 20:45:23 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-04-07 20:45:23 +0000
commitfecb3eb2efb021bd6d385eaadd5665e3394ddf13 (patch)
tree019cf34a8bce2bd9e1028025d3174fc7ad7c8476 /modules/FindQt4.cmake
parentbec897efa6e8c7327f52e2262e9c8e66699a3422 (diff)
downloadextra-cmake-modules-fecb3eb2efb021bd6d385eaadd5665e3394ddf13.tar.gz
extra-cmake-modules-fecb3eb2efb021bd6d385eaadd5665e3394ddf13.tar.bz2
-in ADD_CUSTOM_COMMAND: use MAIN_DEPENDENCY, where the depend file is a file which will not be compiled by the C/C++ compiler
and use DEPENDS for everything else and where it's unsure whether it's a header or an implementation file this fixes the build in kdelibs/kdewidgets/ partly, now it breaks with "unknown interface" :-/ Alex svn path=/trunk/KDE/kdelibs/; revision=527355
Diffstat (limited to 'modules/FindQt4.cmake')
-rw-r--r--modules/FindQt4.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/FindQt4.cmake b/modules/FindQt4.cmake
index b4622f9f..ba692d8e 100644
--- a/modules/FindQt4.cmake
+++ b/modules/FindQt4.cmake
@@ -632,7 +632,7 @@ IF (QT4_QMAKE_FOUND)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${QT_MOC_EXECUTABLE}
ARGS ${moc_includes} -o ${outfile} ${infile}
- MAIN_DEPENDENCY ${infile})
+ DEPENDS ${infile})
ENDMACRO (QT4_GENERATE_MOC)
@@ -651,7 +651,7 @@ IF (QT4_QMAKE_FOUND)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${QT_MOC_EXECUTABLE}
ARGS ${moc_includes} -o ${outfile} ${it}
- MAIN_DEPENDENCY ${it})
+ DEPENDS ${it})
SET(${outfiles} ${${outfiles}} ${outfile})
ENDFOREACH(it)