I\'ve come across at least 3 ways to do this and I\'m wondering which is the idiomatic way. This needs to be done almost universally to any static library. I\'m surprised
If this is not your cmake project and you can't or don't want to modify the project files you can also pass the following command line option to cmake: