build: fix ModemManager-names.h generation warning

Use configure_file() instead of custom_target(). This resolves the
following warning:

WARNING: Source item '/home/user/ModemManager/header-generator.xsl'
cannot be converted to File object, because it is a generated file. This
will become a hard error in the future.
This commit is contained in:
Yegor Yefremov
2024-01-15 12:42:11 +01:00
parent 7c23c3db2f
commit a55ef5e939
+1 -2
View File
@@ -18,8 +18,7 @@ install_headers(
header = 'ModemManager-names.h' header = 'ModemManager-names.h'
mm_names_header = custom_target( mm_names_header = configure_file(
header,
input: [build_aux_dir / 'header-generator.xsl', mm_ifaces_all], input: [build_aux_dir / 'header-generator.xsl', mm_ifaces_all],
output: header, output: header,
command: [find_program('xsltproc'), '--xinclude', '--nonet', '--output', '@OUTPUT@', '@INPUT@'], command: [find_program('xsltproc'), '--xinclude', '--nonet', '--output', '@OUTPUT@', '@INPUT@'],