Skip to content

Commit c9d585b

Browse files
committed
Fix Cmake Path Issue
1 parent cf1ef5c commit c9d585b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cppython/plugins/cmake/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def generate_provider_preset(provider_data: CMakeSyncData) -> CMakePresets:
2929

3030
if provider_data.toolchain:
3131
# Use the toolchainFile field for better integration
32-
generated_configure_preset.toolchainFile = provider_data.toolchain
32+
generated_configure_preset.toolchainFile = provider_data.toolchain.as_posix()
3333

3434
if cache_variables:
3535
generated_configure_preset.cacheVariables = cache_variables

cppython/plugins/cmake/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ConfigurePreset(CPPythonModel, extra='allow'):
5959
Field(description='The path to the output binary directory.'),
6060
] = None
6161
toolchainFile: Annotated[
62-
Path | None,
62+
str | Path | None,
6363
Field(description='Path to the toolchain file.'),
6464
] = None
6565
cacheVariables: dict[str, None | bool | str | CacheVariable] | None = None

0 commit comments

Comments
 (0)