Skip to content

Commit f6ba30e

Browse files
committed
Fix for libraries that do not have a .h file that matches directory name
1 parent f25fe5e commit f6ba30e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/Platform/Arduino.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,10 @@ function(find_arduino_libraries VAR_NAME SRCS ARDLIBS)
917917
list(APPEND ARDUINO_LIBS ${LIB_SEARCH_PATH}/${INCLUDE_NAME})
918918
break()
919919
endif()
920+
if(EXISTS ${LIB_SEARCH_PATH}/${CMAKE_MATCH_1})
921+
list(APPEND ARDUINO_LIBS ${LIB_SEARCH_PATH})
922+
break()
923+
endif()
920924
endforeach()
921925
endif()
922926
endforeach()

0 commit comments

Comments
 (0)