Relative Content

Tag Archive for cmakestatic-librariesstatic-linkingbuild-dependenciesbuildconfiguration

How do I configure my library to best support static builds of dependent projects?

Suppose I am developing the libfoo library, written in a compiled language, and am using CMake to configure its build. This library itself depends on another library, libvar. Thus, if someone else is building the MyApp application, which uses my library, they have to have link both against libfoo and libbar (e.g. specify both -lfoo and -lbar).