summaryrefslogtreecommitdiffstats
path: root/Modules/Internal
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-19 13:39:45 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-05-19 13:39:59 (GMT)
commit48a303e6f4cee7c04194d1e863027e1ece92c306 (patch)
tree7ac85756faff1cbaff972e17d23c8c4d5e1d8015 /Modules/Internal
parent80c2b994d6bc297b583ea201f0c154db8c3c80c5 (diff)
parent066ff258dbea32cda233109910606c617fedc59f (diff)
downloadCMake-48a303e6f4cee7c04194d1e863027e1ece92c306.zip
CMake-48a303e6f4cee7c04194d1e863027e1ece92c306.tar.gz
CMake-48a303e6f4cee7c04194d1e863027e1ece92c306.tar.bz2
Merge topic 'cpack-nuget-components-on-windows'
066ff258db CPack/NuGet: Restore component packaging on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7280
Diffstat (limited to 'Modules/Internal')
-rw-r--r--Modules/Internal/CPack/CPackNuGet.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Internal/CPack/CPackNuGet.cmake b/Modules/Internal/CPack/CPackNuGet.cmake
index fb363f4..056d025 100644
--- a/Modules/Internal/CPack/CPackNuGet.cmake
+++ b/Modules/Internal/CPack/CPackNuGet.cmake
@@ -332,7 +332,9 @@ endfunction()
function(_cpack_nuget_make_files_tag)
set(_files)
foreach(_comp IN LISTS ARGN)
- string(APPEND _files " <file src=\"${_comp}/**\" target=\".\" />\n")
+ cmake_path(APPEND _comp "**")
+ cmake_path(NATIVE_PATH _comp _comp)
+ string(APPEND _files " <file src=\"${_comp}\" target=\".\" />\n")
endforeach()
set(_CPACK_NUGET_FILES_TAG "<files>\n${_files} </files>" PARENT_SCOPE)
endfunction()