diff options
author | Eric Engestrom <[email protected]> | 2017-10-24 14:57:11 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-10-25 14:05:56 +0100 |
commit | 7983adc60f2f3e4390b2dee98c30d7da14732b83 (patch) | |
tree | a093704d9450c36254de32c15f8ca804709e3890 /meson.build | |
parent | 9e5a5a11ed93637fe28735e3dd161e59c4c3e5d0 (diff) |
meson: be explicit about the version required
This way, we know what we're allowed to use (no nested include lists
for instance) and users get immediate feedback when trying to use
unsupported versions, rather than a cryptic crash or things being
silently not built correctly.
Cc: Dylan Baker <[email protected]>
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 4d4f1640874..2a89b6482f9 100644 --- a/meson.build +++ b/meson.build @@ -18,8 +18,14 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -project('mesa', ['c', 'cpp'], version : '17.3.0-devel', license : 'MIT', - default_options : ['c_std=c99', 'cpp_std=c++11']) +project( + 'mesa', + ['c', 'cpp'], + version : '17.3.0-devel', + license : 'MIT', + meson_version : '>= 0.42', + default_options : ['c_std=c99', 'cpp_std=c++11'] +) # Arguments for the preprocessor, put these in a separate array from the C and # C++ (cpp in meson terminology) arguments since they need to be added to the |