From: Francis Dupont Date: Fri, 13 Mar 2026 09:21:41 +0000 (+0100) Subject: [#3982] Improved Botan version X-Git-Tag: Kea-3.1.9~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa3c042a15bdfd37d43732fb177d3ad18875b66a;p=thirdparty%2Fkea.git [#3982] Improved Botan version --- diff --git a/meson.build b/meson.build index 5165e84782..e7db5806cc 100644 --- a/meson.build +++ b/meson.build @@ -790,15 +790,19 @@ endif if CRYPTO_DEP.name() == botan.name() report_conf_data.set('CRYPTO_NAME', 'Botan') report_conf_data.set('SPACES', ' ') - result = cpp.run( - fs.read('compiler-checks/get-botan-version.cc'), - name: 'Get Botan version', - dependencies: [CRYPTO_DEP], - ) - if result.returncode() == 0 - version = result.stdout().strip() - else + if meson.is_cross_build() version = botan.version() + else + result = cpp.run( + fs.read('compiler-checks/get-botan-version.cc'), + name: 'Get Botan version', + dependencies: [CRYPTO_DEP], + ) + if result.returncode() == 0 + version = result.stdout().strip() + else + version = botan.version() + endif endif if version == 'unknown' version = 'unknown version'