diff options
author | Volker Weißmann <volker.weissmann@gmx.de> | 2022-06-29 18:38:02 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2022-07-18 13:46:26 +0200 |
commit | cdd2dca17491dddafbed1225b2d6471f4eab0535 (patch) | |
tree | fd7a9ba4cf54c99a00ba5b7b8fa9248cb2b46c90 /mesonbuild/cmake/interpreter.py | |
parent | 0bf66ff02c4e89cf3875206c2bf04851340255b4 (diff) | |
download | meson-cdd2dca17491dddafbed1225b2d6471f4eab0535.zip meson-cdd2dca17491dddafbed1225b2d6471f4eab0535.tar.gz meson-cdd2dca17491dddafbed1225b2d6471f4eab0535.tar.bz2 |
cmake module: Better warnings and error messages in some cases.
Diffstat (limited to 'mesonbuild/cmake/interpreter.py')
-rw-r--r-- | mesonbuild/cmake/interpreter.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |