Skip to content

Commit 8b415c8

Browse files
committed
Improved library search: now properties ending with architectures are ignored.
1 parent e745a9b commit 8b415c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Arduino/System/BoardBuildTargets.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@ function(_library_search_process lib search_paths_var search_suffixes_var return
861861
# message("Folder match ${lib}:${dir}:${folder_name_priority}")
862862

863863
# Check for architecture match
864-
file(STRINGS "${dir}/library.properties" arch_str REGEX "architectures=.*")
865-
string(REGEX MATCH "architectures=(.*)" arch_list "${arch_str}")
864+
file(STRINGS "${dir}/library.properties" arch_str REGEX "^architectures=.*")
865+
string(REGEX MATCH "^architectures=(.*)" arch_list "${arch_str}")
866866
string(REPLACE "," ";" arch_list "${CMAKE_MATCH_1}")
867867
string(TOUPPER "${ARDUINO_BOARD_BUILD_ARCH}" board_arch)
868868

0 commit comments

Comments
 (0)