summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriorikyu <benhiz.i@gmail.com>2020-12-21 23:07:36 +0100
committerBrad King <brad.king@kitware.com>2020-12-22 09:30:33 -0500
commitdade75509feb8fc3fbacc33c5927babbc3f47d95 (patch)
treeaa81f0693b1b10cd79cf08685742be2c5ba495e1
parent05a59f37abd982b249f8cad648640c3394acc98a (diff)
downloadcmake-dade75509feb8fc3fbacc33c5927babbc3f47d95.tar.gz
CPack/NuGet: Fix nuspec file generation for UNIX-style OS
Use forward slashes, which should work on both UNIX and Windows.
-rw-r--r--Modules/Internal/CPack/CPackNuGet.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Internal/CPack/CPackNuGet.cmake b/Modules/Internal/CPack/CPackNuGet.cmake
index 56bbffdb12..fb363f4489 100644
--- a/Modules/Internal/CPack/CPackNuGet.cmake
+++ b/Modules/Internal/CPack/CPackNuGet.cmake
@@ -332,7 +332,7 @@ endfunction()
function(_cpack_nuget_make_files_tag)
set(_files)
foreach(_comp IN LISTS ARGN)
- string(APPEND _files " <file src=\"${_comp}\\**\" target=\".\" />\n")
+ string(APPEND _files " <file src=\"${_comp}/**\" target=\".\" />\n")
endforeach()
set(_CPACK_NUGET_FILES_TAG "<files>\n${_files} </files>" PARENT_SCOPE)
endfunction()