bootrom build includes pico_bootrom but not bootrom.h which is the only thing which requires pico_flash... slightly hacky fix to not include pico_flash if not available

This commit is contained in:
graham sanderson 2024-08-28 12:40:14 -05:00
parent a2a4c2041e
commit 4bbf701b4b

View file

@ -9,4 +9,7 @@ target_sources(pico_bootrom INTERFACE
)
target_link_libraries(pico_bootrom_headers INTERFACE boot_picoboot_headers)
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_base hardware_boot_lock pico_flash)
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_base hardware_boot_lock)
if (TARGET pico_flash)
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_flash)
endif()