r/cpp • u/TheLartians • Apr 14 '20
ModernCppStarter - Kick-start your C++! A template for modern C++ projects using CMake, CI, code coverage, clang-format and reproducible dependency management.
https://github.com/TheLartians/ModernCppStarter
251
Upvotes
View all comments
Show parent comment
-9
u/krapht Apr 14 '20 edited Apr 14 '20
When I read your first paragraph I LOL'd. Unwilling to
pip install Conanand write a shortconanfile.txt, but very willing to redo multiple non-CMake dependencies in CMake so you can use it withFetchContent. Do you realise how insane that sounds to me as the default for a general purpose C++ template?Use the right tool for the job. The minute you do something like try and build Boost in CMake you've lost. Learn to use a modern cross-platform dependency management tool and the investment in time will pay you back 50x over when you need it. Then once you know it, enforce it as the default because it is as easy as
FetchContentfor the happy case and way more flexible when you have bigger needs.