aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/165 get project license/meson.build
blob: e7e9deb85c0fbcff698991e667316d3376bfc86e (plain)
1
2
3
4
5
6
7
8
project('bar', 'c', license: 'Apache-2.0')

executable('bar', 'bar.c')

license = meson.project_license()[0]
if license != 'Apache-2.0'
    error('The license should be Apache-2.0, but it is: ' + license)
endif