3 ms·
CMake doesn't fetch your dependencies for you and ensure they're the version that your code is compatible with. I've cloned 5 year old C++ repos that use cmake
by shric 3y ago
CMake doesn't fetch your dependencies for you and ensure they're the version that your code is compatible with.
I've cloned 5 year old C++ repos that use cmake and it's quite an effort to build them, mostly due to finding all the dependencies correctly versioed.
- FpUser 3y agoI do not want it to fetch dependencies. I download those once and include it as a copy per project. Update on on-need basis. Over the years I have accumulated enough. To start new project all I have to do is - clone template directory and I am ready to go.
- neeeeees 3y ago> CMake doesn't fetch your dependencies for you and ensure they're the version that your code is compatible with. That’s a little too harsh. You can certainly make it do that via a combination of git tags (to build from source) and CMake modules/Find*, but yes, it’s much more cumbersome than cargo/npm/go
- jahnu 3y agoThis is true for almost all projects but things are getting better. I use CPM for a couple of years now and get the experience desired https://github.com/cpm-cmake/CPM.cmake https://github.com/cpm-cmake/CPM.cmake