queezythegreat/arduino-cmake — pull request #31 by johnyb (2012-02-28 18:25:16+00:00)
Title: prefer the avrdude shipped by arduino sdk

Since cmake prefers the systems paths instead of the given ones, the
avrdude installed by some Linux distributions might be prefered. Since
arduino patches the avrdude program, the default should be to use the
avrdude provided by the arduino sdk instead of the system one and only
use the later as a fallback option.

Of course, the user can still override the ARDUINO_AVRDUDE_PROGRAM
variable within cmake to use the systems binary.

This should be considered an RFC instead of a pull request. I experienced problems with the default avrdude on ubuntu und this might also be a problem when several arduino versions are installed and one of these installs it’s avrdude into the system’s binary path.

Also this might fix the problem described in issue queezythegreat/arduino-cmake#27 (at least the 2nd comment made me come up with this patch).