<PROJECT-NAME>_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 with project name ``<PROJECT-NAME>``, if any.
