Skip to content

Commit a246639

Browse files
committed
Changing the update of the option variables for generate_avr_library
The option lists for HDRS and LIBS in generate_avr_library are producing mixed up lists if the set function is used with a space character as delimiter between option name and rest of list. Using list function for inserting option name helped.
1 parent 42d671c commit a246639

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmake/Platform/Arduino.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,14 @@ function(GENERATE_AVR_LIBRARY INPUT_NAME)
429429
set( INPUT_LIBS "LIBS ${INPUT_LIBS}" )
430430
endif()
431431

432+
if(INPUT_HDRS)
433+
list(INSERT INPUT_HDRS 0 "HDRS")
434+
endif()
435+
if(INPUT_LIBS)
436+
list(INSERT INPUT_LIBS 0 "LIBS")
437+
endif()
438+
439+
432440
generate_arduino_library( ${INPUT_NAME}
433441
NO_AUTOLIBS
434442
MANUAL

0 commit comments

Comments
 (0)