Skip to content

Commit 1a38bd3

Browse files
committed
Path
1 parent 80067ff commit 1a38bd3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cppython/plugins/conan/plugin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646

4747
self._ensure_default_profiles()
4848

49-
self._cmake_binary = None
49+
self._cmake_binary: str | None = None
5050

5151
@staticmethod
5252
def features(directory: Path) -> SupportedFeatures:
@@ -267,9 +267,7 @@ def _sync_with_cmake(self, consumer: SyncConsumer) -> CMakeSyncData:
267267
"""
268268
# Extract cmake_binary from CMakeGenerator if available
269269
if isinstance(consumer, CMakeGenerator) and not os.environ.get('CMAKE_BINARY'):
270-
# Only override if not already set from environment variable
271-
cmake_path = consumer.data.cmake_binary
272-
self._cmake_binary = self._resolve_cmake_binary(cmake_path)
270+
self._cmake_binary = self._resolve_cmake_binary(consumer.data.cmake_binary)
273271

274272
return self._create_cmake_sync_data()
275273

0 commit comments

Comments
 (0)