Arduino-AVR-CMake icon indicating copy to clipboard operation
Arduino-AVR-CMake copied to clipboard

Make defaults sensible for windows, fix program finding.

Open MHebes opened this issue 1 year ago • 0 comments

Thanks for the project! Just some things I came across when compiling on windows.

Uses find_program instead of set to find avr tools so that .exe suffix is added. Small behavior change: Does not FORCE the cache variable change. Could get around this with a find_program(NO_CACHE) followed by set(CACHE FORCE) if you'd like, it just looks a little clunkier.

Checks CMAKE_HOST_WIN32 to give a different default for ARDUINO_PATH.

Mentions issue about Visual Studio generators not respecting CMAKE_CXX_COMPILER.

MHebes avatar Jul 15 '24 04:07 MHebes