perhaps you may try my version Modernize the cmake files a bit by ClausKlein · Pull Request #3 · pananton/cpp-lib-template · GitHub