On Wed, Nov 23, 2011 at 1:26 PM, John Drescher <dresche...@gmail.com> wrote: > On Wed, Nov 23, 2011 at 12:30 PM, Stephen Kelly <steve...@gmail.com> wrote: >> David Demelier wrote: >> >>> Hello, >>> >>> I'm creating a library that use a lot of internal code (not static >>> because it should be visible by other compilation units) so I would like >>> to don't export any symbols but only the one I want. >>> >>> Usually you use __declspec(dllexport) for windows but on unix and gcc >>> everything is exported and I don't know any portable way to disable this. >>> >>> Does CMake can handle this problem and export some symbols without using >>> ten thousand of #ifdef #endif in C files? >>> >>> Cheers, >>> >> >> See also cmake --help-command GenerateExportHeader in cmake 2.8.6. >> >> > jmd0 work # cmake --help-command GenerateExportHeader > cmake version 2.8.6 > Argument "generateexportheader" to --help-command is not a CMake > command. Use --help-command-list to see all commands. > > > John > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake >
It's actually a module, not a command: cmake --help-module generateexportheader -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake