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:
+1
-2
@@ -18,8 +18,7 @@ install_headers(
|
||||
|
||||
header = 'ModemManager-names.h'
|
||||
|
||||
mm_names_header = custom_target(
|
||||
header,
|
||||
mm_names_header = configure_file(
|
||||
input: [build_aux_dir / 'header-generator.xsl', mm_ifaces_all],
|
||||
output: header,
|
||||
command: [find_program('xsltproc'), '--xinclude', '--nonet', '--output', '@OUTPUT@', '@INPUT@'],
|
||||
|
||||
Reference in New Issue
Block a user