Some license identifiers are ambiguous (e.g. "GPL3"). The SPDX license identifiers avoid this by providing standardized and unique identifiers (e.g. "GPL-3.0-only" or "GPL-3.0-or-later" for the previous example). Because SPDX short-form identifiers are also both human- and machine-readable we should recommend them in the documentation. More information (advantages, details, etc.) can be found here: - https://spdx.dev/resources/use/#identifiers - https://spdx.dev/ids/ Fix #7905.pull/7157/merge
parent
7860a6aeab
commit
cc033e5476
2 changed files with 11 additions and 10 deletions
@ -1,8 +1,8 @@ |
||||
project('bar', 'c', license: 'Apache') |
||||
project('bar', 'c', license: 'Apache-2.0') |
||||
|
||||
executable('bar', 'bar.c') |
||||
|
||||
license = meson.project_license()[0] |
||||
if license != 'Apache' |
||||
error('The license should be Apache, but it is: ' + license) |
||||
if license != 'Apache-2.0' |
||||
error('The license should be Apache-2.0, but it is: ' + license) |
||||
endif |
||||
|
Loading…
Reference in new issue