function 'pico_add_udf2_output' fails, when target property ARCHIVE_OUTPUT_DIRECTORY uses generator expressions #1640

Open
opened 2024-02-19 05:16:12 -06:00 by stefanschober · 0 comments
stefanschober commented 2024-02-19 05:16:12 -06:00 (Migrated from github.com)

The CMAKE documentation on ARCHIVE_OUTPUT_DIRECTORY states, that this target property may make use of CMAKE generator expressions.

If generator expressions are used in ARCHIVE_OUTPUT_DIRECTORY the function pico_add_uf2_output in <pico_sdk>/tools/CMakeLists.txt fails in line 59 file(MAKE_DIRECTORY "${output_path}")

The [CMAKE documentation on ARCHIVE_OUTPUT_DIRECTORY ](https://cmake.org/cmake/help/latest/prop_tgt/ARCHIVE_OUTPUT_DIRECTORY.html) states, that this target property may make use of [CMAKE generator expressions](https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html). If generator expressions are used in `ARCHIVE_OUTPUT_DIRECTORY ` the function `pico_add_uf2_output` in [<pico_sdk>/tools/CMakeLists.txt](https://github.com/raspberrypi/pico-sdk/blob/master/tools/CMakeLists.txt) fails in line 59 `file(MAKE_DIRECTORY "${output_path}")`
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#1640
No description provided.