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 6090155 commit 8b6df55Copy full SHA for 8b6df55
src/scikit_build_core/program_search.py
@@ -80,7 +80,9 @@ def get_cmake_program(cmake_path: Path) -> Program:
80
try:
81
result = Run().capture(cmake_path, "-E", "capabilities")
82
83
- version = Version(json.loads(result.stdout)["version"]["string"])
+ version = Version(
84
+ json.loads(result.stdout)["version"]["string"].split("-")[0]
85
+ )
86
logger.info("CMake version: {}", version)
87
return Program(cmake_path, version)
88
except (json.decoder.JSONDecodeError, KeyError, InvalidVersion):
0 commit comments