[gexiv2] build: Fix BMFF configuration test
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gexiv2] build: Fix BMFF configuration test
- Date: Sun, 5 Sep 2021 18:59:15 +0000 (UTC)
commit 180c2d664254ca0f7eac1a398619ef2b90670e58
Author: Matt Turner <mattst88 gmail com>
Date: Sun Sep 5 11:35:56 2021 -0700
build: Fix BMFF configuration test
Fixes: 30cc5a3 ("build: Add check for BMFF support")
meson.build | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 6128f25..e8bae0c 100644
--- a/meson.build
+++ b/meson.build
@@ -21,16 +21,17 @@ exiv2 = dependency('exiv2', version : '>= 0.26')
gobject = dependency('gobject-2.0', version : '>= 2.46.0')
gio = dependency('gio-2.0', version : '>= 2.46.0')
cc = meson.get_compiler('c')
+cpp = meson.get_compiler('cpp')
math = cc.find_library('m', required : false)
python3 = import('python').find_installation('python3', modules: 'gi', required: get_option('python3'))
-bmff_test = '''#include <exiv2/exiv2.h>
+bmff_test = '''#include <exiv2/exiv2.hpp>
#ifndef EXV_ENABLE_BMFF
#error No BMFF support in exiv2
#endif
'''
-bmff_available = cc.compiles(bmff_test, name : 'BMFF support in exiv2', dependencies : [exiv2])
+bmff_available = cpp.compiles(bmff_test, name : 'BMFF support in exiv2', dependencies : [exiv2])
find_program('g-ir-scanner', required: get_option('introspection'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]