improve compatability with older meson versions

- changed <compiler>.get_version() to <compiler>.version()

Signed-off-by: Florian "sp1rit"​ <sp1ritCS@protonmail.com>
This commit is contained in:
Florian sp1rit​ 2022-08-21 00:32:55 +02:00 committed by Florian "sp1rit"​
parent 39a9980fb1
commit e9551731f0
No known key found for this signature in database
GPG Key ID: BA579378AC81FB05
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ if cpp_compiler.has_argument('-std=c++23')
elif cpp_compiler.has_argument('-std=c++2b')
add_global_arguments('-std=c++2b', language: 'cpp')
else
error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.get_version() + ') with required C++ standard (C++23)')
error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.version() + ') with required C++ standard (C++23)')
endif
GIT_BRANCH = run_command('git', 'rev-parse', '--abbrev-ref', 'HEAD', check: false).stdout().strip()