[CMake] Undef GENERATE_EXPORT_HEADER macros?

Matt Cotter mcotter222 at gmail.com
Thu Oct 29 15:31:05 EDT 2015


Hello!

Is there a way to have cmake generate #undef's for all of the macros it
creates in the GENERATE_EXPORT_HEADER command? I am trying not to leak
these macros to users including the library, but I can't seem to find any
way to generate this.

As a reference, for other macros that I am defining myself, I'm using
#pragma push_macro() and #undef before defining them and then #undef and
#pragma pop_macro() after I'm done with them.

Thanks for any help!
-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151029/5a56a9a1/attachment.html>


More information about the CMake mailing list