File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -429,6 +429,14 @@ function(GENERATE_AVR_LIBRARY INPUT_NAME)
429
429
set ( INPUT_LIBS "LIBS ${INPUT_LIBS} " )
430
430
endif ()
431
431
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
+
432
440
generate_arduino_library( ${INPUT_NAME}
433
441
NO_AUTOLIBS
434
442
MANUAL
@@ -546,13 +554,13 @@ function(GENERATE_AVR_FIRMWARE INPUT_NAME)
546
554
required_variables(VARS INPUT_BOARD INPUT_SRCS MSG "must define for target ${INPUT_NAME} " )
547
555
548
556
if (INPUT_HDRS)
549
- set ( INPUT_HDRS "SRCS ${INPUT_HDRS} " )
557
+ list ( INSERT INPUT_HDRS 0 "HDRS" )
550
558
endif ()
551
559
if (INPUT_LIBS)
552
- set ( INPUT_LIBS "LIBS ${INPUT_LIBS} " )
560
+ list ( INSERT INPUT_LIBS 0 "LIBS" )
553
561
endif ()
554
562
if (INPUT_AFLAGS)
555
- set ( INPUT_AFLAGS "AFLAGS ${INPUT_AFLAGS} " )
563
+ list ( INSERT INPUT_AFLAGS 0 "AFLAGS" )
556
564
endif ()
557
565
558
566
generate_arduino_firmware( ${INPUT_NAME}
You can’t perform that action at this time.
0 commit comments