You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
johnb003
changed the title
static lib and dynamic lib shouldn't duplicate targets
static lib and dynamic lib shouldn't be duplicate cmake targets
Jun 26, 2018
the cmake file for libraries is meant just to define how things are related, then you rely on the compiler to interpret those and put them together.
Static libs and shared libs can be built with pretty much the same definition of relationships.
The preferred way of doing it is: add_library(target sources), without STATIC or SHARED, thus relying on whatever is specified in BUILD_SHARED_LIBS to determine it. See https://cgold.readthedocs.io/en/latest/tutorials/libraries/static-shared.html
The text was updated successfully, but these errors were encountered: