Skip to content

Commit

Permalink
Add ${CMAKE_CURRENT_LIST_DIR} to include boards.cmake/*.cmake properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Prime9999 committed Oct 4, 2024
1 parent 337b297 commit 83eae90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Espressif ESP* based boards
if (DEFINED ESP_PLATFORM)
include(boards.cmake/esp-idf.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/boards.cmake/esp-idf.cmake)

# Raspberry Pi RP* based boards
elseif ((DEFINED PICO_PLATFORM) OR (DEFINED PICO_BOARD))
include(boards.cmake/pico-sdk.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/boards.cmake/pico-sdk.cmake)

# Cannot determine boards type
else()
Expand Down

0 comments on commit 83eae90

Please sign in to comment.