Re: [CMake] Executable project creating an import library

2009-01-24 Thread Robert Dailey
On Sat, Jan 24, 2009 at 11:16 AM, Stefan Buschmann wrote: > Robert Dailey schrieb: > >> I've specified a very complex CMake script that generates an executable >> project. When I use this CMake script to generate a Visual Studio 2008 >> project, the "Import Library" property located in Project Set

Re: [CMake] Executable project creating an import library

2009-01-24 Thread Stefan Buschmann
Robert Dailey schrieb: I've specified a very complex CMake script that generates an executable project. When I use this CMake script to generate a Visual Studio 2008 project, the "Import Library" property located in Project Settings >> Linker >> Advanced property page in Visual Studio 2008 has

Re: [CMake] c++ and static initalizations

2009-01-24 Thread David Cole
Alternatively, you could explicitly reference all the symbols of interest from the main executable. That gives you just what you need, still allowing the linker to strip out the unreferenced things you don't need. Another benefit of this approach is that you'll end up with some code that shows you

Re: [CMake] c++ and static initalizations

2009-01-24 Thread Timenkov Yuri
This problem may occur with gcc because of static library linking policy. If you have a symbol in static library which is not referenced from main executable it will not be linked in. (For example, if you use static classes to register something to factories). To solve this issue, you should either

[CMake] c++ and static initalizations

2009-01-24 Thread Aleix Pol
hi list, I'm having a little problem involving c++ static initializations using static libraries libraries. The problem is that if I link this code to the executable as a static library the code is never run, but if it is a SHARED library it is, but I need it to be static (if possible). The code l

Re: [CMake] cpack bundle generator qq

2009-01-24 Thread Mike Arthur
On Saturday 17 January 2009 01:40:27 Timothy M. Shead wrote: > Agreed - as I mentioned before, I understand that if you don't have a > bundle, running a GUI application out of the build directory is > problematic (for those unfamiliar: your program runs, but the window > manager doesn't provide any