FetchContent fails with a git@github.com: type URL if the git filepath contains a dash
Example
In my CMakeLists, I have a line like:
FetchContent_Declare(
holoplaycoresdk
GIT_REPOSITORY git@github.com:Looking-Glass/infoware.git
GIT_TAG ddb80f48e6a3f7d9b98aa45b6feeb461db3d0c6a # tag 1.0.0
)
FetchContent_MakeAvailable(holoplaycoresdk)
(In the actual CMakeLists, the URL goes to a special repo that requires access to a particular Git organization, which is why I must use the git protocol instead of https://. However, I have replaced it with a generic git repo here for illustration.)