After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 595214 - #cmakedefine directives can not be documentated
#cmakedefine directives can not be documentated
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-09-14 21:25 UTC by Lukas Sommer
Modified: 2009-10-08 14:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lukas Sommer 2009-09-14 21:25:43 UTC
#cmakedefine can be used in C/C++ files instead of #define if you use the CMake build system (which is standard for KDE applications). When calling CMake, it will not only create the makefiles, but replace each occurence of #cmakedefine by either #define (if a variable of the same name lives in the build system) or comment it out (if there doens't live a variable of the same name in the build system).

Actually, I can't produce documentation for #cmakedefine. (I've tried it using "\def", but that results in an error message that no corresponding define is found, and my documentation isn't included in doxygens's output.) It would be great if doxygen could support #cmakedefine directives. They could be handeled exactly the same way like normal #define directives are handeld.
Comment 1 Dimitri van Heesch 2009-10-04 11:20:07 UTC
I'll include it in the next subversion update. 
Please let me know if it works as expected.
Comment 2 Lukas Sommer 2009-10-08 14:59:54 UTC
Works fine with svn 709.