[CMake] Combining two static libraries into one

Rainer Poisel rainer.poisel at gmail.com
Wed Jul 3 08:47:45 EDT 2019


I think there is no platform-independent way to solve this. Maybe you
could create two OBJECT libraries that are "linked" together into one
static lib.

Best regards,
  Rainer

On Tue, Jul 2, 2019 at 5:30 PM Cristian Adam <cristian.adam at gmail.com> wrote:
>
>
> On Tue, Jul 2, 2019 at 5:14 PM vinay kumar Kotegowder <vinay.kotegowder at gmail.com> wrote:
>>
>> Hi Everyone,
>>
>> I have a requirement on combining two static library into one.
>> Can anyone tell me how can I achieve this?
>>
>> Regards,
>> Vinay
>>
>
> If your compiler is GCC or Visual C++, you can use this as a base:
> https://cristianadam.eu/20190501/bundling-together-static-libraries-with-cmake/
>
> Cheers,
> Cristian.
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list