summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2023-12-29 23:25:01 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-08 16:01:06 (GMT)
commit2c616e85cf76ec57500a629a2152e118c223674c (patch)
tree7c9a3ddd29c83f402c657d6bd977ef1e4fa11432 /Modules
parenta3f76a4e4dc15997f22306b002fbc452af1259a6 (diff)
downloadCMake-2c616e85cf76ec57500a629a2152e118c223674c.zip
CMake-2c616e85cf76ec57500a629a2152e118c223674c.tar.gz
CMake-2c616e85cf76ec57500a629a2152e118c223674c.tar.bz2
CPack/NuGet: Add support for readme tag
Fixes: #25542
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Internal/CPack/CPack.NuGet.nuspec.in1
-rw-r--r--Modules/Internal/CPack/CPackNuGet.cmake3
2 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Internal/CPack/CPack.NuGet.nuspec.in b/Modules/Internal/CPack/CPack.NuGet.nuspec.in
index d89d69f..f54a3f5 100644
--- a/Modules/Internal/CPack/CPack.NuGet.nuspec.in
+++ b/Modules/Internal/CPack/CPack.NuGet.nuspec.in
@@ -15,6 +15,7 @@
@_CPACK_NUGET_LICENSE_TAG@
@_CPACK_NUGET_ICONURL_TAG@
@_CPACK_NUGET_ICON_TAG@
+ @_CPACK_NUGET_README_TAG@
@_CPACK_NUGET_REQUIRELICENSEACCEPTANCE_TAG@
@_CPACK_NUGET_SUMMARY_TAG@
@_CPACK_NUGET_RELEASENOTES_TAG@
diff --git a/Modules/Internal/CPack/CPackNuGet.cmake b/Modules/Internal/CPack/CPackNuGet.cmake
index 056d025..bd482bd 100644
--- a/Modules/Internal/CPack/CPackNuGet.cmake
+++ b/Modules/Internal/CPack/CPackNuGet.cmake
@@ -294,6 +294,9 @@ function(_cpack_nuget_render_spec)
# attributes: "type", "url", "branch", and "commit". While all fields are
# considered optional, they are not independent. Currently unsupported.
+ # NuGet >= 5.10
+ _cpack_nuget_variable_fallback_and_wrap_into_element(readme README)
+
# Handle dependencies
_cpack_nuget_variable_fallback(_deps DEPENDENCIES)
set(_collected_deps)