mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-02-05 18:40:21 +00:00
pico_generate_pio_header: Create OUTPUT_DIR (#1610)
Previously, if a custom OUTPUT_DIR was specified but didn't exist then this command would fail. Fixes: https://github.com/raspberrypi/pico-sdk/issues/1609
This commit is contained in:
parent
f1c6fc8b6d
commit
c9cce7a312
@ -26,6 +26,7 @@ function(pico_generate_pio_header TARGET PIO)
|
||||
endif()
|
||||
|
||||
if (pico_generate_pio_header_OUTPUT_DIR)
|
||||
file(MAKE_DIRECTORY ${pico_generate_pio_header_OUTPUT_DIR})
|
||||
get_filename_component(HEADER_DIR ${pico_generate_pio_header_OUTPUT_DIR} ABSOLUTE)
|
||||
else()
|
||||
set(HEADER_DIR "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user