make host hardware_ libraries depend on hardware_claim too as it was moved to common in 2.0.0

This commit is contained in:
graham sanderson 2026-01-05 16:40:06 -06:00
parent 578dabb60b
commit 35cc916162
2 changed files with 2 additions and 5 deletions

View file

@ -165,9 +165,7 @@ macro(pico_simple_hardware_impl_target NAME)
)
pico_mirrored_target_link_libraries(hardware_${NAME} INTERFACE pico_platform)
if (NOT PICO_NO_HARDWARE)
target_link_libraries(hardware_${NAME} INTERFACE hardware_claim)
endif()
target_link_libraries(hardware_${NAME} INTERFACE hardware_claim)
endif()
endmacro()

View file

@ -1,2 +1 @@
pico_simple_hardware_target(irq)
target_link_libraries(hardware_irq INTERFACE hardware_claim)
pico_simple_hardware_target(irq)