File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1010from typing import Annotated
1111
1212from pydantic import Field
13- from pydantic .types import FilePath
1413
1514from cppython .core .schema import CPPythonModel , SyncData
1615
@@ -100,7 +99,7 @@ class CMakePresets(CPPythonModel, extra='allow'):
10099class CMakeSyncData (SyncData ):
101100 """The CMake sync data"""
102101
103- preset_file : Annotated [FilePath , Field (description = 'Path to the CMakePresets.json file generated by the provider' )]
102+ preset_file : Annotated [Path , Field (description = 'Path to the CMakePresets.json file generated by the provider. ' )]
104103 configurations : Annotated [
105104 list [str ],
106105 Field (
Original file line number Diff line number Diff line change @@ -208,9 +208,9 @@ def _create_cmake_sync_data(self) -> CMakeSyncData:
208208 Returns:
209209 CMakeSyncData configured for Conan integration
210210 """
211- # Conan's CMakeToolchain generator automatically creates preset files
212- # The preset file will be created by Conan in the build directory
213- conan_preset_path = self .core_data .cppython_data .build_path / 'CMakePresets .json'
211+ # Conan's CMakeToolchain generator creates preset files at the configured user_presets_path
212+ # This should match the path configured in the conanfile template
213+ conan_preset_path = self .core_data .cppython_data .tool_path / 'ConanPresets .json'
214214
215215 return CMakeSyncData (
216216 provider_name = TypeName ('conan' ),
You can’t perform that action at this time.
0 commit comments