Linking mongocxx and bsoncxx static libs to another c++ project

How would I build mongo/bson with -fPIC? Can I pass it as a parameter to the cmake?

Everything else is built with -fPIC.

About the find_package, I just couldn’t find the correct name to pass as an argument… passing “libmongocxx” just gave me a deprecated error. target_link and include also seemed more intuitive and less error prone.