diff --git a/32blit-pico/CMakeLists.txt b/32blit-pico/CMakeLists.txt index 7cc10705f..64938fddb 100644 --- a/32blit-pico/CMakeLists.txt +++ b/32blit-pico/CMakeLists.txt @@ -3,6 +3,7 @@ cmake_policy(SET CMP0079 NEW) # target_link_libraries() allows use with targets set(CMAKE_C_STANDARD 11) # Initialise the Pico SDK +set(PICO_BOARD_HEADER_DIRS ${CMAKE_CURRENT_LIST_DIR}/board) include (pico_sdk_import.cmake) set(32BLIT_PICO 1 PARENT_SCOPE) diff --git a/32blit-pico/sdk_import.cmake b/32blit-pico/sdk_import.cmake index e7083cb06..7279e072b 100644 --- a/32blit-pico/sdk_import.cmake +++ b/32blit-pico/sdk_import.cmake @@ -1,3 +1,4 @@ if(PICO_BOARD) + set(PICO_BOARD_HEADER_DIRS ${CMAKE_CURRENT_LIST_DIR}/board) include(${CMAKE_CURRENT_LIST_DIR}/pico_sdk_import.cmake) endif()