Skip to content

Commit

Permalink
pico_generate_pio_header: Create OUTPUT_DIR (#1610)
Browse files Browse the repository at this point in the history
Previously, if a custom OUTPUT_DIR was specified but didn't exist
then this command would fail.

Fixes: #1609
  • Loading branch information
timg236 authored Jan 19, 2024
1 parent f1c6fc8 commit c9cce7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit c9cce7a

Please sign in to comment.