diff options
| author | Phil Howard <phil@pimoroni.com> | 2023-05-04 21:25:52 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-05-18 12:51:36 +1000 |
| commit | 4ce360fa831a35d7bc0e194f11d74632a0fba60b (patch) | |
| tree | 349b13476ef62d08b2a089ada8f323a424294141 | |
| parent | f9958417d8adb21147de776361a4414073cf7c77 (diff) | |
rp2/CMakeLists: Allow relative MICROPY_BOARD_DIR when invoking cmake.
Convert to an absolute path to always reliably locate manifest.py. This is
already done in Makefile, but is also needed in CMakeLists.txt if cmake is
invoked directly.
Signed-off-by: Phil Howard <phil@pimoroni.com>
| -rw-r--r-- | ports/rp2/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt index 501957d20..4d0de9218 100644 --- a/ports/rp2/CMakeLists.txt +++ b/ports/rp2/CMakeLists.txt @@ -31,6 +31,7 @@ endif() if(NOT MICROPY_BOARD_DIR) set(MICROPY_BOARD_DIR ${MICROPY_PORT_DIR}/boards/${MICROPY_BOARD}) endif() +get_filename_component(MICROPY_BOARD_DIR ${MICROPY_BOARD_DIR} ABSOLUTE) if(NOT EXISTS ${MICROPY_BOARD_DIR}/mpconfigboard.cmake) message(FATAL_ERROR "Invalid MICROPY_BOARD specified: ${MICROPY_BOARD}") endif() |
