mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Add printout of picotool location (#2475)
This prints out the location of the picotool executable being used For example: * `Using picotool from /usr/local/bin/picotool` for a system install * `Using picotool from /home/name/pico-examples/build/_deps/picotool/picotool` for a picotool fetched by the SDK
This commit is contained in:
parent
550aa09624
commit
14d75c0b78
1 changed files with 8 additions and 0 deletions
|
|
@ -139,6 +139,14 @@ function(pico_init_picotool)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if (TARGET picotool AND NOT DEFINED ENV{_PICOTOOL_FOUND_THIS_RUN})
|
||||
# Internal environment variable to prevent printing multiple times
|
||||
set(ENV{_PICOTOOL_FOUND_THIS_RUN} 1)
|
||||
|
||||
get_property(picotool_location TARGET picotool PROPERTY LOCATION)
|
||||
message("Using picotool from ${picotool_location}")
|
||||
endif()
|
||||
|
||||
if (TARGET picotool)
|
||||
set(picotool_FOUND 1 PARENT_SCOPE)
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue