queezythegreat / arduino-cmake

Arduino CMake Build system
645 stars 216 forks source link

Fixing problems with generate_avr_firmware and generate_avr_library #90

Closed TheMiles closed 10 years ago

TheMiles commented 10 years ago

I had a problem with generate_avr_firmware when I needed to use the HDRS and AFLAGS options. The content of these options got mangled into the SRCS option.

After looking through the code I found out that the variables containing the HDRS, LIBS, AFLAGS option lists are concatenated wrong. So I changed the method to use list functions provided by cmake. This helped me and the variables seem to be correct now.

queezythegreat commented 10 years ago

Awesome, thanks for fixing this bug!