Skip to content

Commit e280a1f

Browse files
committed
fix: more readable error on missing ccmake
1 parent 40acf75 commit e280a1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cmake/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ def _program_exit(name: str, *args: str) -> NoReturn:
5050

5151

5252
def ccmake() -> NoReturn:
53+
if not (Path(CMAKE_BIN_DIR) / "ccmake").exists():
54+
raise FileNotFoundError(
55+
f"'ccmake' is not available in cmake installation at '{CMAKE_BIN_DIR}'. "
56+
"Perhaps 'ccmake' is not yet inclucded to the package for this platform."
57+
)
5358
_program_exit('ccmake', *sys.argv[1:])
5459

5560

0 commit comments

Comments
 (0)