build: fix fs.copyfile usage for meson versions 0.64/0.64.1
Though this function was introduced in 0.64, its usage with install_dir was broken till meson version 1.0.0. Hence, bump the minimal required meson version for the fs.copyfile() routine. See the following meson commit for details: https://github.com/mesonbuild/meson/commit/100456de0761ee949e2277c97746cb8571b6ba39
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ service_conf = {
|
||||
}
|
||||
|
||||
# DBus Service file
|
||||
if meson_version.version_compare('>=0.64')
|
||||
if meson_version.version_compare('>=1.0.0')
|
||||
fs.copyfile(
|
||||
'org.freedesktop.ModemManager1.conf.@0@polkit'.format(enable_polkit ? '' : 'no'),
|
||||
'@BASENAME@',
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ project(
|
||||
)
|
||||
|
||||
meson_version = meson.version()
|
||||
if meson_version.version_compare('>=0.64')
|
||||
if meson_version.version_compare('>=1.0.0')
|
||||
fs = import('fs')
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user