CPack/NuGet: Fix nuspec file generation for UNIX-style OS

Use forward slashes, which should work on both UNIX and Windows.
This commit is contained in:
iorikyu
2020-12-21 23:07:36 +01:00
committed by Brad King
parent 05a59f37ab
commit dade75509f

View File

@@ -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()