Skip to content

Commit b6a5564

Browse files
committed
Only report statistics after running arduino-cli
1 parent cd3483a commit b6a5564

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

toolchain/arduino-cli-toolchain.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,9 @@ function(__arduino_find_board_details MODE)
532532
if (NOT _property_list)
533533
string(REPLACE ";" "\\;" _properties "${_properties}") # <------------------ split into lines; preserving semicolons
534534
string(REGEX REPLACE "[ \t\r]*\n" ";" _property_list "${_properties}")
535+
endif()
535536

537+
if (NOT _use_property_cache)
536538
list(LENGTH _property_list _count)
537539
message(STATUS " ${_count} properties found")
538540
endif()
@@ -600,8 +602,11 @@ function(__arduino_find_libraries)
600602
endif()
601603

602604
string(JSON _installed_libraries GET "${_json}" installed_libraries) # <-------------- parse the library information
603-
string(JSON _count LENGTH "${_installed_libraries}")
604-
message(STATUS " ${_count} libraries found")
605+
606+
if (NOT _use_library_cache)
607+
string(JSON _count LENGTH "${_installed_libraries}")
608+
message(STATUS " ${_count} libraries found")
609+
endif()
605610

606611
set(__ARDUINO_INSTALLED_LIBRARIES "${_installed_libraries}" PARENT_SCOPE)
607612
set(__ARDUINO_INSTALLED_LIBRARIES_CACHE "${_arduino_cache_filepath}" PARENT_SCOPE)

0 commit comments

Comments
 (0)