queezythegreat / arduino-cmake

Arduino CMake Build system
645 stars 216 forks source link

Finds system avrdude binary, but Arduino avrdude config file #99

Closed bshillingford closed 9 years ago

bshillingford commented 9 years ago

Because Arduino bundles a 5.x version of avrdude (mine is 5.11), and system copies of avrdude will usually be 6.x (mine is 6.1), it is important that arduino-cmake gets either:

I am running cmake 3.0.1 (from homebrew) on OS X Mavericks, using the README-suggested distribution of avrdude (from homebrew).

The current search order in arduino-cmake resulted in the following cmake snippet:

message(STATUS "ARDUINO_AVRDUDE_PROGRAM=${ARDUINO_AVRDUDE_PROGRAM}")
message(STATUS "ARDUINO_AVRDUDE_CONFIG_PATH=${ARDUINO_AVRDUDE_CONFIG_PATH}")

producing the following output:

-- ARDUINO_AVRDUDE_PROGRAM=/usr/local/bin/avrdude
-- ARDUINO_AVRDUDE_CONFIG_PATH=/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf

The commit from issue #31 or a related issue may be relevant.

bshillingford commented 9 years ago

Fixed in pull request https://github.com/queezythegreat/arduino-cmake/pull/100