queezythegreat / arduino-cmake

Arduino CMake Build system
644 stars 216 forks source link

Add setting to specify ARDUINO_SDK_PATH #15

Closed treaves closed 12 years ago

treaves commented 12 years ago

It'd be nice to be able to set this in the CMakeLists.txt file, as I'm forced to have more than one version installed. I think this would only take putting a conditional around the find_path directive.

queezythegreat commented 12 years ago

You can actually set it during the build system generation using the -D option:

cmake -D ARDUINO_SDK_PATH=/path/to/arduino_sdk ../path/to/sources

If ARDUINO_SDK_PATH is set, find_path does nothing.

treaves commented 12 years ago

O.K. thanks.