mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
fba540daf6
Add an argument to the `project` command to allow specifying a license for a project as a whole. This is in addition to specifying licenses on individual targets, and will be used to set the license(s) on exported packages. Also, move listing of `COMPAT_VERSION` variables to follow lexicographical order.
13 lines
376 B
ReStructuredText
13 lines
376 B
ReStructuredText
PROJECT_SPDX_LICENSE
|
|
--------------------
|
|
|
|
.. versionadded:: 4.2
|
|
|
|
.. note::
|
|
|
|
Experimental. Gated by ``CMAKE_EXPERIMENTAL_EXPORT_PACKAGE_INFO``.
|
|
|
|
Value given to the ``SPDX_LICENSE`` option of the most recent call to the
|
|
:command:`project` command, if any. To obtain the compatibility version of the
|
|
top level project, see the :variable:`CMAKE_PROJECT_SPDX_LICENSE` variable.
|