Fix possible name for CMake target with project sources

This commit is contained in:
Valerii Koval
2020-04-17 00:03:15 +03:00
parent 5e0f9e47b0
commit 86fbfad669
+2 -1
View File
@@ -871,7 +871,8 @@ if project_target_name not in target_configs:
sys.stderr.write("Error: Couldn't find the main target of the project!\n") sys.stderr.write("Error: Couldn't find the main target of the project!\n")
env.Exit(1) env.Exit(1)
project_ld_scipt = generate_project_ld_script(sdk_config, ["__idf_src", "__pio_env"]) project_ld_scipt = generate_project_ld_script(
sdk_config, [project_target_name, "__pio_env"])
env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", project_ld_scipt) env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", project_ld_scipt)
elf_config = get_project_elf(target_configs) elf_config = get_project_elf(target_configs)