Patch for KDE4Macros to use extra target on Windows

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sat Jul 19 12:52:57 CEST 2008


Matthias Kretz schrieb:
> Hi,
> 
> attached is a patch to use the new automoc macro which adds a new target per 
> default on Windows.
> 
> Please let me know if that is what you want/need and whether I should commit 
> this.
> 
The patch doesn't look correct to me:

@@ -672,7 +679,11 @@

        target_link_libraries(${_target_NAME} ${QT_QTMAIN_LIBRARY} 
kdeinit_${_target_NAME})
     else(WIN32)
-      kde4_handle_automoc(kdeinit_${_target_NAME} _SRCS)
+      if(WIN32)
+         add_automoc4_target("kdeinit_${_target_NAME}_automoc" _SRCS)
+      else(WIN32)
+         automoc4(kdeinit_${_target_NAME} _SRCS)
+      endif(WIN32)


here we're already in the !WIN32 part so the above has no effect for 
WIN32 at all.


Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20080719/47348005/attachment.pgp 


More information about the Kde-buildsystem mailing list