cpack-nuget.rst 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. cpack-nuget
  2. -----------
  3. * The :cpack_gen:`CPack NuGet Generator` gained options:
  4. - :variable:`CPACK_NUGET_PACKAGE_ICON` and
  5. :variable:`CPACK_NUGET_<compName>_PACKAGE_ICON`
  6. allow package icons to be specified by local files.
  7. - :variable:`CPACK_NUGET_PACKAGE_LICENSE_EXPRESSION` and
  8. :variable:`CPACK_NUGET_<compName>_PACKAGE_LICENSE_EXPRESSION` add
  9. support for specifying licenses recognized by the
  10. `Software Package Data Exchange`_ (SPDX).
  11. - :variable:`CPACK_NUGET_PACKAGE_LICENSE_FILE_NAME` and
  12. :variable:`CPACK_NUGET_<compName>_PACKAGE_LICENSE_FILE_NAME` allow
  13. licenses to be specified by local files.
  14. - :variable:`CPACK_NUGET_PACKAGE_LANGUAGE` and
  15. :variable:`CPACK_NUGET_<compName>_PACKAGE_LANGUAGE` allow the locale
  16. for a package to be specified, for example ``en_CA``.
  17. Some other variables have been deprecated to reflect changes in the
  18. NuGet specification:
  19. - :variable:`CPACK_NUGET_PACKAGE_ICONURL` and
  20. :variable:`CPACK_NUGET_<compName>_PACKAGE_ICONURL` have been deprecated;
  21. replace with a reference to a local icon file.
  22. - :variable:`CPACK_NUGET_PACKAGE_LICENSEURL` and
  23. :variable:`CPACK_NUGET_<compName>_PACKAGE_LICENSEURL` have been deprecated;
  24. replace with a reference to the project's license file or SPDX
  25. license expression.
  26. .. _Software Package Data Exchange: https://spdx.org/