Skip to content

Commit

Permalink
Provide error message when CMakeCache.txt could not be found
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Nov 19, 2024
1 parent 0a7ee03 commit 256e1f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ev-dev-tools/src/ev_cli/ev.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,9 @@ def main():
print(f'Searching for everest-framework in: {cmake_cache_path}')
print('You can either provide the schemas directory with --schemas-dir or influence the'
' automatic search path by setting --build-dir (default: ./build)')
if not cmake_cache_path.exists():
print(f'CMakeCache.txt does not exist: {cmake_cache_path}')
exit(1)
with open(cmake_cache_path, 'r') as cmake_cache_file:
search = 'everest-framework_SOURCE_DIR:STATIC='
for line in cmake_cache_file:
Expand Down

0 comments on commit 256e1f8

Please sign in to comment.