We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ccmake
1 parent 65e300c commit 6d23b00Copy full SHA for 6d23b00
src/cmake/__init__.py
@@ -1,6 +1,7 @@
1
from __future__ import annotations
2
3
import os
4
+import shutil
5
import subprocess
6
import sys
7
from importlib.metadata import distribution
@@ -50,6 +51,11 @@ def _program_exit(name: str, *args: str) -> NoReturn:
50
51
52
53
def ccmake() -> NoReturn:
54
+ if shutil.which("ccmake", path=CMAKE_BIN_DIR) is None:
55
+ raise FileNotFoundError(
56
+ f"'ccmake' is not available in cmake installation at '{CMAKE_BIN_DIR}'. "
57
+ "Perhaps 'ccmake' is not yet inclucded to the package for this platform."
58
+ )
59
_program_exit('ccmake', *sys.argv[1:])
60
61
0 commit comments