We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e280a1f commit 65ffb08Copy full SHA for 65ffb08
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,7 +51,7 @@ def _program_exit(name: str, *args: str) -> NoReturn:
50
51
52
53
def ccmake() -> NoReturn:
- if not (Path(CMAKE_BIN_DIR) / "ccmake").exists():
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."
0 commit comments