mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-18 12:41:40 -06:00
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.
6 lines
231 B
CMake
6 lines
231 B
CMake
project(ProjectLicenseTest SPDX_LICENSE "BSD-3-Clause" LANGUAGES)
|
|
if(NOT PROJECT_SPDX_LICENSE)
|
|
message(FATAL_ERROR "PROJECT_SPDX_LICENSE expected to be set")
|
|
endif()
|
|
message(STATUS "PROJECT_SPDX_LICENSE=${PROJECT_SPDX_LICENSE}")
|