In CMake and several build systems that directly link the static library to another static library, it makes no sense. You can create a static library and a second one, and your executable project is linked to both, but it is impossible to link the first static library to the second library, and then link them to the final executable. Although VS allows this, it does not make sense for other build systems and, therefore, CMake refrains from it.
Some solutions include creating your static shared library or pulling library sources into an executable.
Other details here
Marco A.
source share