I'm building a shared library that links some external libraries
statically. Something like this:
ADD_LIBRARY(foo SHARED ${SRC})
TARGET_LINK_LIBRARIES(foo
/a/b/c/abc.a
/d/e/f/def.a
)
This works fine. I then have an executable that links to this library
ADD_EXECUTABLE(app ${CODE})
TARGET_LINK_LIBRARIES(app foo)
When the application is linked, it links in the same static libraries as the
shared library. This seems like a bug to link the libraries twice. Am I
doing something wrong?
Thanks,
Omar
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake