diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 5273840a5..bb9f7eaa3 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -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()