Skip to content

Commit e66e12c

Browse files
committed
Add default nameOnDisk value for external CMake projects
Issue platformio#863
1 parent 60537fb commit e66e12c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builder/frameworks/espidf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,8 @@ def get_targets_by_type(target_configs, target_types, ignore_targets=None):
815815
def get_components_map(target_configs, target_types, ignore_components=None):
816816
result = {}
817817
for config in get_targets_by_type(target_configs, target_types, ignore_components):
818+
if "nameOnDisk" not in config:
819+
config["nameOnDisk"] = "lib%s.a" % config["name"]
818820
result[config["id"]] = {"config": config}
819821

820822
return result

0 commit comments

Comments
 (0)