Skip to content

Commit

Permalink
[cbuild2cmake] Set cmse-lib as a CMake custom command byproduct
Browse files Browse the repository at this point in the history
  • Loading branch information
brondani authored Feb 7, 2025
1 parent 43ff5d6 commit 29836b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/maker/buildcontent.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func OutputFiles(outputList []Output) (outputByProducts string, outputFile strin
outputByProducts += "\nset(LD_MAP_FILE \"" + output.File + "\")"
case "cmse-lib":
outputByProducts += "\nset(CMSE_LIB \"" + output.File + "\")"
customCommands += "\n\n# CMSE Library\n add_custom_command(TARGET ${CONTEXT} PRE_LINK COMMAND \"\" BYPRODUCTS ${OUT_DIR}/${CMSE_LIB})"
case "elf", "lib":
outputFile = output.File
outputType = output.Type
Expand Down

0 comments on commit 29836b8

Please sign in to comment.