Re: [CMake] Linking an entire static library

2012-09-10 Thread Yuri Timenkov
As an option you may create .def file which lists functions from static library as exported. This will force linker to treat them as undefined and link with all dependencies. However this requires some actions and works only for quite stable libs. We employed this approach when we had no control ov

Re: [CMake] Linking an entire static library

2012-09-10 Thread Petr Kmoch
Hi Eric. Many thanks for your reply. On Mon, Sep 10, 2012 at 9:49 AM, Eric Noulard wrote: > 2012/9/10 Petr Kmoch : >> Hi all. >> >> I'm on Windows, and I need a DLL composed of multiple static >> libraries, any of which can define dllexport functions not otherwise >> referenced in the DLL. The p

Re: [CMake] Linking an entire static library

2012-09-10 Thread Eric Noulard
2012/9/10 Petr Kmoch : > Hi all. > > I'm on Windows, and I need a DLL composed of multiple static > libraries, any of which can define dllexport functions not otherwise > referenced in the DLL. The problem is that the Visual Studio linker > does not provide flags to link an entire static library (i

[CMake] Linking an entire static library

2012-09-10 Thread Petr Kmoch
Hi all. I'm on Windows, and I need a DLL composed of multiple static libraries, any of which can define dllexport functions not otherwise referenced in the DLL. The problem is that the Visual Studio linker does not provide flags to link an entire static library (i.e. there is no equivalent to ld's