diff mbox series

[3/3] edid-decode: build: Use override_find_program to help subproject usage

Message ID 20240605110907.621053-3-sebastian.wick@redhat.com
State New
Headers show
Series None | expand

Commit Message

Sebastian Wick June 5, 2024, 11:09 a.m. UTC
This makes the following possible when edid-decode is a subproject:

    subproject('edid-decode')
    edid_decode = find_program('edid-decode')

Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
---
 meson.build | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git ./meson.build ../meson.build
index e61d544..a3f4512 100644
--- ./meson.build
+++ ../meson.build
@@ -67,4 +67,9 @@  edid_decode = executable(
 	install: true,
 )
 
-install_man('edid-decode.1')
\ No newline at end of file
+meson.override_find_program(
+	'edid-decode',
+	edid_decode,
+)
+
+install_man('edid-decode.1')