diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 1b1cbc9d4..b358142cc 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -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}")