From cdd2dca17491dddafbed1225b2d6471f4eab0535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volker=20Wei=C3=9Fmann?= Date: Wed, 29 Jun 2022 18:38:02 +0200 Subject: cmake module: Better warnings and error messages in some cases. --- mesonbuild/cmake/interpreter.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mesonbuild/cmake/interpreter.py') diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py index 88ab13f..d22b572 100644 --- a/mesonbuild/cmake/interpreter.py +++ b/mesonbuild/cmake/interpreter.py @@ -667,6 +667,7 @@ class ConverterCustomTarget: commands = [] # type: T.List[T.List[T.Union[str, ConverterTarget]]] for curr_cmd in self._raw_target.command: assert isinstance(curr_cmd, list) + assert curr_cmd[0] != '', "An empty string is not a valid executable" cmd = [] # type: T.List[T.Union[str, ConverterTarget]] for j in curr_cmd: -- cgit v1.1