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 May 1, 2024
1 parent 6cb0a68 commit fd0e3a6
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 @@ -51,7 +51,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 fd0e3a6

Please sign in to comment.