[CMake] Convert libtool convenience libraries to cmake

Yevgen Muntyan ymuntyan at gmail.com
Wed Apr 15 01:09:58 EDT 2009


How do you do it, do you manually add -fPIC or something to compiler
flags? Could you
show the CMakeLists.txt?

Thanks!
Yevgen

On Tue, Apr 14, 2009 at 8:14 AM, Andreas Pokorny
<andreas.pokorny at gmail.com> wrote:
> Hello,
>
>
> 2009/4/13 Andreas Pakulat <apaku at gmx.de>:
>>> [...]
>>> question. Anybody knows how to build
>>> a shared library of separate cmake targets?
>>
>> Then you might be out of luck. Of course you could try creating static
>> libs and then link those into your shared lib. But thats not supported
>> on all platforms that exist out there, I'm even unsure if this is
>> supported on win32.
>
> We do exactly that on Linux x86/x86_64/arm and QNX x86/arm (Unix Makefiles)
> and  Win32 including CE5/CE6 (NMake and Visual Studio).
>
> We also sometimes do rather dirty stuff when building a static library
> twice - with and
> without tracing. And here we modify the COMPILE_FLAGS of the whole target using
> SET_TARGET_PROPERTIES.
>
> kind regards
> Andreas Pokorny
> _______________________________________________
> 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
>


More information about the CMake mailing list