Skip to content

Commit

Permalink
pico: set our board directory as an extra search path for the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Nov 7, 2024
1 parent 788e0d2 commit c028783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions 32blit-pico/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions 32blit-pico/sdk_import.cmake
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit c028783

Please sign in to comment.