I've noticed that CMake defines a macro called <targetname>_EXPORTS for 
each module that is being built.

Would the Win32 guys oppose if I merged the two export headers into one 
and used that macro instead?

I.e., instead of:
#ifndef KDEUI_EXPORT
# ifdef MAKE_KDEUI_LIB
#  define KDEUI_EXPORT KDE_EXPORT
# else
#  define KDEUI_EXPORT KDE_IMPORT
# endif
#endif

We'd have:
#ifndef KDEUI_EXPORT
# ifdef kdeui_EXPORTS
#  define KDEUI_EXPORT KDE_EXPORT
# else
#  define KDEUI_EXPORT KDE_IMPORT
# endif
#endif

(the change is on the second line)

This works just fine on Linux and the other Unices, in case someone is 
wondering.
-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: pgpeVXWI2OJGR.pgp
Description: PGP signature

_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to