Skip to content

Commit

Permalink
Merge pull request arduino-cmake#37 from fraillt/hotfix/arduino-defin…
Browse files Browse the repository at this point in the history
…e-fix

Fixed ARDUINO define
  • Loading branch information
MrPointer authored Dec 19, 2017
2 parents 9937311 + 084d511 commit 50770f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log

### Version 2.0.0 (Dec 13th 2017)
# Version [2.0.1](https://github.com/arduino-cmake/arduino-cmake/compare/v2.0.0...v2.0.1) (Dec 19th 2017)

### Bug fixes

* fixed `-DARDUINO` define for Arduino SDK versions between 1.0.0 and 1.5.8. This bug caused to included `WProgram.h` instead of `Arduino.h` for aforementioned versions.

# Version 2.0.0 (Dec 13th 2017)

An epic version which integrates too many changes to be listed and recorded since the latest stable version, which was **1.0.0**. It has been released almost <u>4 years ago</u>!

Expand Down
4 changes: 1 addition & 3 deletions cmake/Platform/Core/BoardFlags/FlagsSetter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ function(_get_normalized_sdk_version OUTPUT_VAR)
# -DARDUINO format after 1.0.0 combines all 3 version parts together,
# e.g. for 1.5.3 version -DARDUINO=153
set(NORMALIZED_VERSION
"${ARDUINO_SDK_VERSION_MAJOR}\
${ARDUINO_SDK_VERSION_MINOR}\
${ARDUINO_SDK_VERSION_PATCH}")
"${ARDUINO_SDK_VERSION_MAJOR}${ARDUINO_SDK_VERSION_MINOR}${ARDUINO_SDK_VERSION_PATCH}")
endif ()
endif ()

Expand Down

0 comments on commit 50770f5

Please sign in to comment.