raspberrypi / pico-sdk

BSD 3-Clause "New" or "Revised" License
3.26k stars 838 forks source link

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

Open stefanschober opened 4 months ago

stefanschober commented 4 months ago

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 /tools/CMakeLists.txt fails in line 59 file(MAKE_DIRECTORY "${output_path}")