I'm enabling IPO (inter-procedural optimization) for a C compilation of mine, using CMake: set_property(TARGET foo PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
I have a CMake project with several subprojects that create static libraries built with -flto=thin. The project has a lot of tests that are linked against the a