CPack NuGet configuration misses "repository" tag
There is no way to specify repository tag with CPACK (Variables to CPack NuGet generator) which deviates from current nuspec specification.
Add/support following or similar tags
set(CPACK_NUGET_PACKAGE_REPOSITORY_TYPE "git")
set(CPACK_NUGET_PACKAGE_REPOSITORY_URL "https://github.com/this_repository")
set(CPACK_NUGET_PACKAGE_REPOSITORY_BRANCH "<your_branch_here>")
set(CPACK_NUGET_PACKAGE_REPOSITORY_COMMIT "<your_hash_here>")
which should translate into
<repository type="git" url="https://github.com/this_repository" branch="<your_branch_here>" commit="<your_hash_here>" />
Edited by Johnny Jazeix