CPackNuget.cmake munges dependency name when handling dependencies with hyphens
At ~ line 227 in CPackNuget.cmake in the block which handles dependencies (search for "# Handle dependencies" this line -> "string(MAKE_C_IDENTIFIER "${_dep}" _dep_id)" causes dependencies with '-' in their name to not get rendered into the final nuspec.
For example, if i have dependencies like the following (taken from a nuspec with the correct output);
<dependencies>
<dependency id="TBB-2017U5-0226-lib_win_debug_intel64_v140" version="1.0.1" />
<dependency id="bsplines-i-lib_win_debug_intel64_v140" version="[7.0.0, 8.0.0)" />
</dependencies>
because they have hyphens ('-') in their names, when the MAKE_CIDENTIFIER is called on ${_dep}, it removed them which then causes the dependencies to be ignored.
nuget package ids' accept '-' in the name, so i think the line "string(MAKE_C_IDENTIFIER "${_dep}" _dep_id)" can safely be removed and ${_dep} used in its' place. I cannot see why it was needed. Please help.