[CMake] Don't export symbols but the one I want

2011-11-23 Thread David Demelier
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

Re: [CMake] Don't export symbols but the one I want

2011-11-23 Thread Pau Garcia i Quiles
Hi, gcc supports symbol visibility also. Check http://gcc.gnu.org/wiki/Visibility On Wed, Nov 23, 2011 at 5:52 PM, David Demelier demelier.da...@gmail.com wrote: Hello, I'm creating a library that use a lot of internal code (not static because it should be visible by other compilation

Re: [CMake] Don't export symbols but the one I want

2011-11-23 Thread Stephen Kelly
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

Re: [CMake] Don't export symbols but the one I want

2011-11-23 Thread John Drescher
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

Re: [CMake] Don't export symbols but the one I want

2011-11-23 Thread David Cole
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