Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cmake): remove invalid keywords (DEPENDS) #659

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmake/DaisyProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,21 @@ target_link_options(${FIRMWARE_NAME} PUBLIC
$<$<CXX_COMPILER_ID:GNU>:LINKER:--print-memory-usage>
)

add_custom_command(TARGET ${FIRMWARE_NAME} POST_BUILD
add_custom_command(TARGET ${FIRMWARE_NAME}
POST_BUILD
COMMAND ${CMAKE_OBJCOPY} -O ihex -S $<TARGET_FILE:${FIRMWARE_NAME}> $<TARGET_FILE_DIR:${FIRMWARE_NAME}>/${FIRMWARE_NAME}.hex
BYPRODUCTS ${FIRMWARE_NAME}.hex
DEPENDS ${FIRMWARE_NAME}
COMMENT "Generating HEX image"
VERBATIM
)

option(DAISY_GENERATE_BIN "Sets whether or not to generate a raw binary image using objcopy (warning this is a very large file, as it is a representation of the *full memory space*.)")

if(DAISY_GENERATE_BIN)
add_custom_command(TARGET ${FIRMWARE_NAME} POST_BUILD
add_custom_command(TARGET ${FIRMWARE_NAME}
POST_BUILD
COMMAND ${CMAKE_OBJCOPY} -O binary -S $<TARGET_FILE:${FIRMWARE_NAME}> $<TARGET_FILE_DIR:${FIRMWARE_NAME}>/${FIRMWARE_NAME}.bin
BYPRODUCTS ${FIRMWARE_NAME}.bin
DEPENDS ${FIRMWARE_NAME}
COMMENT "Generating binary image"
VERBATIM
)
Expand Down