Skip to content

Commit 582116c

Browse files
committed
Fix Toolchain Location
1 parent c9d585b commit 582116c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cppython/plugins/conan/plugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,7 @@ def _generate_consumer_files(self, conan_api: ConanAPI, deps_graph) -> None:
182182
deps_graph=deps_graph,
183183
generators=None, # Our conanfile.py template defines this
184184
source_folder=str(project_root),
185-
output_folder=str(self.core_data.cppython_data.build_path),
186185
)
187-
conan_api.install.
188186

189187
def install(self) -> None:
190188
"""Installs the provider"""
@@ -221,7 +219,7 @@ def sync_data(self, consumer: SyncConsumer) -> SyncData:
221219
for sync_type in consumer.sync_types():
222220
if sync_type == CMakeSyncData:
223221
# Use the CMakeToolchain file directly as the toolchain
224-
toolchain_path = self.core_data.cppython_data.build_path / 'conan_toolchain.cmake'
222+
toolchain_path = self.core_data.cppython_data.build_path / 'generators' / 'conan_toolchain.cmake'
225223

226224
return CMakeSyncData(
227225
provider_name=TypeName('conan'),

0 commit comments

Comments
 (0)