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.