[CMake] How do static libraries get linked in Ninja?

Robert Dailey rcdailey.lists at gmail.com
Thu Jan 5 11:30:18 EST 2017


I have two targets in CMake: a static library and a shared library.
The shared library specifies the static library as a target link
library.

When I generate for Ninja, and I run:

$ ninja -v

During the link command for the shared library, I do not see the
static library specified to g++. I do see *.so files, but not *.a
files. Why are static libraries not showing up on the command line for
the link step? There must be some black magic happening that I'm not
seeing...


More information about the CMake mailing list