use PUBLIC for pio headers on any target except INTERFACE library
This commit is contained in:
parent
7e90980118
commit
a6a436b1fe
@ -27,10 +27,10 @@ function(pico_generate_pio_header TARGET PIO)
|
||||
)
|
||||
add_dependencies(${TARGET} ${HEADER_GEN_TARGET})
|
||||
get_target_property(target_type ${TARGET} TYPE)
|
||||
if ("EXECUTABLE" STREQUAL "${target_type}")
|
||||
target_include_directories(${TARGET} PRIVATE ${HEADER_DIR})
|
||||
else()
|
||||
if ("INTERFACE_LIBRARY" STREQUAL "${target_type}")
|
||||
target_include_directories(${TARGET} INTERFACE ${HEADER_DIR})
|
||||
else()
|
||||
target_include_directories(${TARGET} PUBLIC ${HEADER_DIR})
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user