Add a cli option/flag to download git repo to cmake binary
A very common workflow pattern among cmake users is:
git clone my_repo.git
cmake -S my_repo -B build
cmake --build build
cmake --install build
What I propose is to have the for cmake to allow do this:
cmake -S git@myrepo.git -B build
cmake --build build
cmake --install build
Cmake will internally invoke git (in the same way that ExternalProject module does it), if git is not found and error will be raised.
To discriminate the case when an user really wants to refer as source a directory named git@....git
he could prefix it with ./
Edited by Vicente Bolea