Skip to content

Commit

Permalink
fix cmake version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Jul 3, 2024
1 parent 0c6d3dc commit 05c14d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _custom_build/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

def _cmake_required():
try:
if _version.parse(_get_cmake_version()) >= _version.parse("3.12"):
if _version.parse(_get_cmake_version().split("-")[0]) >= _version.parse("3.12"):
print("Using System version of cmake")
return False
except _SKBuildError:
Expand Down

0 comments on commit 05c14d8

Please sign in to comment.