From 0b220ce9841a3b815a895fe4f75b93e87c236946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Ben=C3=ADtez=20Le=C3=B3n?= Date: Sat, 4 May 2024 17:10:16 +0100 Subject: [PATCH] Build option '-Dprofiler=true' fails with latest sysprof-capture I'm unable to compile gtk+-3 on Fedora 40 with profiler support "-Dprofiler=true" because it looks for sysprof-capture-3 while Fedora 40 only provides sysprof-capture-4. GTK4 for the same build option only looks for sysprof-capture-4. --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 947e748e3a..24785bfe4d 100644 --- a/meson.build +++ b/meson.build @@ -833,7 +833,10 @@ endif profiler_enabled = get_option('profiler') if profiler_enabled - profiler_dep = dependency('sysprof-capture-3', static: true, required: true) + profiler_dep = dependency('sysprof-capture-3', static: true, required: false) + if not profiler_dep.found() + profiler_dep = dependency('sysprof-capture-4', static: true, required: false) + endif if profiler_dep.found() cdata.set('HAVE_SYSPROF_CAPTURE', profiler_dep.found()) else