Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 6e9b7f3

Browse files
committed
Avoid searching system's PATH as the SDK's general Libraries directory
may be used instead of the platform's directory Fix for #58
1 parent 693011c commit 6e9b7f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/Platform/System/PlatformElementsManager.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ endfunction()
9090

9191
function(find_platform_libraries)
9292

93+
# Avoid searching system's PATH as the SDK's general `Libraries` directory
94+
# may be used instead of the platform's directory
9395
find_file(ARDUINO_CMAKE_PLATFORM_LIBRARIES_PATH
9496
NAMES libraries
9597
PATHS ${ARDUINO_CMAKE_PLATFORM_PATH}
9698
DOC "Path to platform directory containing the Arduino libraries"
99+
NO_SYSTEM_ENVIRONMENT_PATH
97100
NO_CMAKE_FIND_ROOT_PATH)
98101

99102
file(GLOB sub-dir "${ARDUINO_CMAKE_PLATFORM_LIBRARIES_PATH}/*")

0 commit comments

Comments
 (0)