From 7b907517a15f06687bf5f9ae7792a255a11e2d39 Mon Sep 17 00:00:00 2001 From: marvinfriede <51965259+marvinfriede@users.noreply.github.com> Date: Sat, 15 Feb 2025 10:30:03 +0100 Subject: [PATCH] Catch empty `-Dcustom_libraries` for custom LAPACK --- config/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/meson.build b/config/meson.build index 695f161f..6f0049d3 100644 --- a/config/meson.build +++ b/config/meson.build @@ -107,6 +107,9 @@ elif lapack_vendor == 'openblas' elif lapack_vendor == 'custom' custom_deps = [] libs = get_option('custom_libraries') + if libs.length() == 0 + error('Custom LAPACK vendor selected, but no custom libraries were provided. Please specify the custom libraries using the "-Dcustom_libraries" option.') + endif if libs[0].startswith('-L') foreach lib: libs if lib != libs[0]