Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/cmake/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import os
import shutil
import subprocess
import sys
from importlib.metadata import distribution
Expand Down Expand Up @@ -50,6 +51,11 @@ def _program_exit(name: str, *args: str) -> NoReturn:


def ccmake() -> NoReturn:
if shutil.which("ccmake", path=CMAKE_BIN_DIR) is None:
raise FileNotFoundError(
f"'ccmake' is not available in cmake installation at '{CMAKE_BIN_DIR}'. "
"Perhaps 'ccmake' is not yet inclucded to the package for this platform."
)
_program_exit('ccmake', *sys.argv[1:])


Expand Down