On Wed, 2019-07-03 at 18:55 +0530, vinay kumar Kotegowder wrote:
> I want to build lib2 static library with pre-built lib1 static
> library.
> Does this work?
>
> add_library(lib1 STATIC lib1.c)
> add_library(lib2 STATIC lib2.c)
> target_link_libraries(lib2 INTERFACE lib1)
Yes, this will wor
I want to build lib2 static library with pre-built lib1 static library.
Does this work?
add_library(lib1 STATIC lib1.c)
add_library(lib2 STATIC lib2.c)
target_link_libraries(lib2 INTERFACE lib1)
Also, Kyle said linking against lib2 will link against both lib1 and
lib2. Is there a static way
I want to build lib2 static array with pre-built lib1 static array.
Does this work?
add_library(lib1 STATIC lib1.c)
add_library(lib2 STATIC lib2.c)
target_link_libraries(lib2 INTERFACE lib1)
Also, Kyle said linking against lib2 will link against both lib1 and
lib2. Is there a static way of
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 wrote:
>
>
> On Tue, Jul 2, 2019 at 5:14 PM vinay kumar Kotegowder
> wrote
On Tue, Jul 2, 2019 at 5:14 PM vinay kumar Kotegowder <
vinay.kotegow...@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
On Tue, 2019-07-02 at 20:44 +0530, vinay kumar Kotegowder 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 you just want to make a library such that linking against that
library links aga
Hi Everyone,
I have a requirement on combining two static library into one.
Can anyone tell me how can I achieve this?
Regards,
Vinay
--
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