Import arduino-cmake fix for CMake (>= 2.8.12) warning

Fix is from https://github.com/Yewess/arduino-cmake/commit/72a7bec