arduino-cmake / Arduino-CMake-NG

CMake-Based framework for Arduino platforms
MIT License
138 stars 39 forks source link

Fix Fail to Build Examples if ARDUINO_SDK_PATH is not in Default Paths #89

Open escrowdis opened 5 years ago

escrowdis commented 5 years ago

If the variable ARDUINO_SDK_PATH is given by the command line

cmake ... -DARDUINO_SDK_PATH=<path-of-arduino-sdk>

rather than

export ARDUINO_SDK_PATH=<path-of-arduino-sdk>

the examples are failed to build and output error in "ArduinoSDKSeeker.cmake" with unknown reason, though it's cached.