mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
use PUBLIC for pio headers on any target except INTERFACE library
This commit is contained in:
parent
7e90980118
commit
a6a436b1fe
1 changed files with 3 additions and 3 deletions
|
|
@ -27,10 +27,10 @@ function(pico_generate_pio_header TARGET PIO)
|
||||||
)
|
)
|
||||||
add_dependencies(${TARGET} ${HEADER_GEN_TARGET})
|
add_dependencies(${TARGET} ${HEADER_GEN_TARGET})
|
||||||
get_target_property(target_type ${TARGET} TYPE)
|
get_target_property(target_type ${TARGET} TYPE)
|
||||||
if ("EXECUTABLE" STREQUAL "${target_type}")
|
if ("INTERFACE_LIBRARY" STREQUAL "${target_type}")
|
||||||
target_include_directories(${TARGET} PRIVATE ${HEADER_DIR})
|
|
||||||
else()
|
|
||||||
target_include_directories(${TARGET} INTERFACE ${HEADER_DIR})
|
target_include_directories(${TARGET} INTERFACE ${HEADER_DIR})
|
||||||
|
else()
|
||||||
|
target_include_directories(${TARGET} PUBLIC ${HEADER_DIR})
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue