On Monday 19 November 2007, Oswald Buddenhagen wrote:
> anyway, shouldn't automoc suppress emitting a cpp when the target has no
> cpp sources?

Ok, to commit?

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED]
Index: cmake/modules/KDE4Macros.cmake
===================================================================
--- cmake/modules/KDE4Macros.cmake	(revision 738777)
+++ cmake/modules/KDE4Macros.cmake	(working copy)
@@ -216,6 +216,7 @@
       endif(NOT _generated AND NOT _skip)
    endforeach (_current_FILE)
 
+   if(_moc_files)
    set(_automoc_source "${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_automoc.cpp")
    GET_DIRECTORY_PROPERTY(_moc_incs INCLUDE_DIRECTORIES)
    CONFIGURE_FILE(${KDE4_MODULE_DIR}/kde4automoc.files.in ${_automoc_source}.files)
@@ -231,6 +232,7 @@
    # problem: the whole target is recompiled when the automoc.cpp file is touched
    # set_source_files_properties(${${_SRCS}} PROPERTIES OBJECT_DEPENDS ${_automoc_source})
    set(${_SRCS} ${_automoc_source} ${${_SRCS}})
+   endif(_moc_files)
 endmacro(KDE4_HANDLE_AUTOMOC)
 
 macro(KDE4_INSTALL_TS_FILES _lang _sdir)

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Kde-buildsystem mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to