Skip to content

Commit ab643f6

Browse files
committed
Compatibility with python 3.9 (fix)
1 parent 2c0d8b1 commit ab643f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/cmake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def build_and_install(args):
134134

135135
def get_presets(preset_type: PresetType):
136136
"""CMake get presets for a given type."""
137-
preset_type = str(preset_type)
137+
preset_type = str(preset_type.value)
138138
cmd = [f"--list-presets={preset_type}"]
139139
res = run_cmake(cmd, capture_output=True, text=True)
140140
presets = [

0 commit comments

Comments
 (0)