diff options
author | Matthias Kretz <kretz@kde.org> | 2007-07-09 21:02:13 +0000 |
---|---|---|
committer | Matthias Kretz <kretz@kde.org> | 2007-07-09 21:02:13 +0000 |
commit | 70dc85a661b066111d0aa63b64618e35b8d1e7fc (patch) | |
tree | a093ab719c977de2de272c5345478e9d7f005a62 | |
parent | d0007a2a50c9847bc12e62d244c8239715c2f8cf (diff) | |
download | extra-cmake-modules-70dc85a661b066111d0aa63b64618e35b8d1e7fc.tar.gz extra-cmake-modules-70dc85a661b066111d0aa63b64618e35b8d1e7fc.tar.bz2 |
cmake touches all .files files which results in all automocs being rerun and the targets relinked. :-( Change the dependency back to the CMakeLists.txt file, still not great but a lot better.
svn path=/trunk/KDE/kdelibs/; revision=685841
-rw-r--r-- | modules/KDE4Macros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index d9891727..586a6739 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -223,7 +223,7 @@ macro(KDE4_HANDLE_AUTOMOC _target_NAME _SRCS) ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${QT_MOC_EXECUTABLE} - DEPENDS ${${_SRCS}} ${_moc_headers} ${_automoc_source}.files ${_KDE4_AUTOMOC_EXECUTABLE_DEP} + DEPENDS ${${_SRCS}} ${_moc_headers} ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt ${_KDE4_AUTOMOC_EXECUTABLE_DEP} ) # the OBJECT_DEPENDS is only necessary when a new moc file has to be generated that is included in a source file # problem: the whole target is recompiled when the automoc.cpp file is touched |