mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
CPack/NuGet: Do not mangle non-C-identifier chars in dependencies
Fixes: #19956
This commit is contained in:
@@ -230,13 +230,11 @@ function(_cpack_nuget_render_spec)
|
|||||||
foreach(_dep IN LISTS _deps)
|
foreach(_dep IN LISTS _deps)
|
||||||
_cpack_nuget_debug(" checking dependency `${_dep}`")
|
_cpack_nuget_debug(" checking dependency `${_dep}`")
|
||||||
|
|
||||||
string(MAKE_C_IDENTIFIER "${_dep}" _dep_id)
|
_cpack_nuget_variable_fallback(_ver DEPENDENCIES_${_dep}_VERSION)
|
||||||
|
|
||||||
_cpack_nuget_variable_fallback(_ver DEPENDENCIES_${_dep_id}_VERSION)
|
|
||||||
|
|
||||||
if(NOT _ver)
|
if(NOT _ver)
|
||||||
string(TOUPPER "${_dep_id}" _dep_id)
|
string(TOUPPER "${_dep}" _dep_upper)
|
||||||
_cpack_nuget_variable_fallback(_ver DEPENDENCIES_${_dep_id}_VERSION)
|
_cpack_nuget_variable_fallback(_ver DEPENDENCIES_${_dep_upper}_VERSION)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(_ver)
|
if(_ver)
|
||||||
|
|||||||
Reference in New Issue
Block a user