Building a combined static library

It doesn’t work for me cuz most of the libraries I need to combine into a single one are found via find_package in the project I build.