diff options
author | yacoub <yacoub.hossain@autodesk.com> | 2019-11-13 13:27:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-11-14 19:48:03 (GMT) |
commit | 26367b4bb2be9013d3bc30deef8ef1eda866a5cd (patch) | |
tree | 50b5adef9655168257d8bf603b8bba65a0642169 /Modules/Internal/CPack | |
parent | e49d85ae4b5397ec33bcfc6bc7984fedd7dcff11 (diff) | |
download | CMake-26367b4bb2be9013d3bc30deef8ef1eda866a5cd.zip CMake-26367b4bb2be9013d3bc30deef8ef1eda866a5cd.tar.gz CMake-26367b4bb2be9013d3bc30deef8ef1eda866a5cd.tar.bz2 |
CPack/NuGet: Do not mangle non-C-identifier chars in dependencies
Fixes: #19956
Diffstat (limited to 'Modules/Internal/CPack')
-rw-r--r-- | Modules/Internal/CPack/CPackNuGet.cmake | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Modules/Internal/CPack/CPackNuGet.cmake b/Modules/Internal/CPack/CPackNuGet.cmake index 82053b2..b46a7b1 100644 --- a/Modules/Internal/CPack/CPackNuGet.cmake +++ b/Modules/Internal/CPack/CPackNuGet.cmake @@ -230,13 +230,11 @@ function(_cpack_nuget_render_spec) foreach(_dep IN LISTS _deps) _cpack_nuget_debug(" checking dependency `${_dep}`") - string(MAKE_C_IDENTIFIER "${_dep}" _dep_id) - - _cpack_nuget_variable_fallback(_ver DEPENDENCIES_${_dep_id}_VERSION) + _cpack_nuget_variable_fallback(_ver DEPENDENCIES_${_dep}_VERSION) if(NOT _ver) - string(TOUPPER "${_dep_id}" _dep_id) - _cpack_nuget_variable_fallback(_ver DEPENDENCIES_${_dep_id}_VERSION) + string(TOUPPER "${_dep}" _dep_upper) + _cpack_nuget_variable_fallback(_ver DEPENDENCIES_${_dep_upper}_VERSION) endif() if(_ver) |