[PATCH i-g-t] tests/kms_histogram: Add check for libghe version

Mohammed Thasleem mohammed.thasleem at intel.com
Wed Jan 8 15:16:06 UTC 2025


Update check for libghe version to avoid compilation issue.

v2: Update version check and remove warning message. (Lucas)
    Print messae at api else check. (Kamil)
v3: Remove special case and update dependency declaration. (Lucas)
v4: Update subject and discription.

Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
---
 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 8b2a2a64a..3b6988cd6 100644
--- a/meson.build
+++ b/meson.build
@@ -197,9 +197,9 @@ else
 	chamelium = disabler()
 endif
 
-libghe = dependency('libghe', required : false)
+libghe = dependency('libghe', version : '>=0.2.0', required : false)
 if libghe.found()
-      config.set('HAVE_LIBGHE', 1)
+  config.set('HAVE_LIBGHE', 1)
 endif
 
 build_info += 'Build Chamelium test: @0@'.format(chamelium.found())
-- 
2.43.0



More information about the igt-dev mailing list