]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3982] Improved Botan version
authorFrancis Dupont <fdupont@isc.org>
Fri, 13 Mar 2026 09:21:41 +0000 (10:21 +0100)
committerFrancis Dupont <fdupont@isc.org>
Thu, 7 May 2026 14:42:59 +0000 (16:42 +0200)
meson.build

index 5165e84782a80238b771cc98649a60d7df007f79..e7db5806cc8e76864d4cbd2319be13a55fdd81a3 100644 (file)
@@ -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'