[CMake] GenerateExportHeader macrr for CMake?

Marcus D. Hanwell marcus.hanwell at kitware.com
Sun Jun 5 12:39:29 EDT 2011


On Sat, Jun 4, 2011 at 3:17 PM, Stephen Kelly <steveire at gmail.com> wrote:
> Hi,
>
> I came up with an idea to simplify the creation of export headers for hidden
> visibility by using configure_file.
>
> After implementing it I saw that the idea has come up before :)
>
> http://www.mail-archive.com/cmake@cmake.org/msg27058.html
>
> Please see the attached proof of concept. Could we get something like
> GenerateExportHeader.cmake and exportheader.cmake.in into CMake 2.8?
>
> Alex tells me I'd have to maintain it, respond to bugs, and keep source
> compatibility, so I guess I can say I'll do that :).

I have been working on similar functionality in the Titan project, and
wrote some abstraction for VTK's handling of symbol import/export
logic. As we modularize VTK we will be doing what Titan has now been
doing for quite some time.

http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Common/vtkABI.h



More information about the CMake mailing list