File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ function(make_arduino_library VAR_NAME BOARD_ID LIB_PATH COMPILE_FLAGS LINK_FLAG
68
68
else ()
69
69
# Target already exists, skiping creating
70
70
list (APPEND LIB_TARGETS ${TARGET_LIB_NAME} )
71
+ list (APPEND LIB_INCLUDES "-I\" ${LIB_PATH} \" " )
71
72
endif ()
72
73
73
74
if (LIB_TARGETS)
Original file line number Diff line number Diff line change @@ -102,20 +102,12 @@ function(find_arduino_libraries VAR_NAME SRCS ARDLIBS)
102
102
list (APPEND ARDUINO_LIBS ${LIB_SEARCH_PATH} /${INCLUDE_NAME} )
103
103
break ()
104
104
endif ()
105
- if (EXISTS ${LIB_SEARCH_PATH} /${CMAKE_MATCH_1} )
106
- list (APPEND ARDUINO_LIBS ${LIB_SEARCH_PATH} )
107
- break ()
108
- endif ()
109
105
110
106
# Some libraries like Wire and SPI require building from source
111
107
if (EXISTS ${LIB_SEARCH_PATH} /${INCLUDE_NAME} /src/${CMAKE_MATCH_1} )
112
108
list (APPEND ARDUINO_LIBS ${LIB_SEARCH_PATH} /${INCLUDE_NAME} /src)
113
109
break ()
114
110
endif ()
115
- if (EXISTS ${LIB_SEARCH_PATH} /src/${CMAKE_MATCH_1} )
116
- list (APPEND ARDUINO_LIBS ${LIB_SEARCH_PATH} /src)
117
- break ()
118
- endif ()
119
111
endforeach ()
120
112
121
113
endif ()
You can’t perform that action at this time.
0 commit comments