From 68fc0838315ef38b8311dc007064fbb2e4747371 Mon Sep 17 00:00:00 2001 From: Rahul Nair Date: Fri, 12 Jul 2024 14:41:08 -0700 Subject: [PATCH] Update cmake.py fix failing due to cmake not found - Make it clear to the user that they have to install cmake. --- tools/setup/cmake.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/setup/cmake.py b/tools/setup/cmake.py index c51ae00..fa3c610 100644 --- a/tools/setup/cmake.py +++ b/tools/setup/cmake.py @@ -182,6 +182,9 @@ def _get_cmake_cache_variables(self): def _run(self, args, env): """Executes cmake with arguments and an environment.""" command = [self._cmake_command] + args + [self.cmake_dir] + if command is None: + print('cmake not found, please install cmake before continuing...') + sys.exit(1) print(' '.join(command)) check_call(command, cwd=self.build_dir, env=env)