diff options
author | Brad King <brad.king@kitware.com> | 2022-05-19 13:39:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-05-19 13:39:59 (GMT) |
commit | 48a303e6f4cee7c04194d1e863027e1ece92c306 (patch) | |
tree | 7ac85756faff1cbaff972e17d23c8c4d5e1d8015 /Modules/Internal | |
parent | 80c2b994d6bc297b583ea201f0c154db8c3c80c5 (diff) | |
parent | 066ff258dbea32cda233109910606c617fedc59f (diff) | |
download | CMake-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.cmake | 4 |
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() |