Skip to content

Commit 495a815

Browse files
Fixes newline in version.txt (#28)
Fixes #25
1 parent 2b67c4b commit 495a815

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Arduino/System/BoardToolchain.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ function (SetupBoardToolchain boards_namespace board_id generate_dir)
116116
EXISTS "${ARDUINO_INSTALL_PATH}/lib/version.txt")
117117
set(_path "${ARDUINO_INSTALL_PATH}")
118118
file(READ "${ARDUINO_INSTALL_PATH}/lib/version.txt" _version)
119+
string(STRIP "${_version}" _version)
119120
else()
120121
set(_path "${ARDUINO_TOOLCHAIN_DIR}")
121122
set(_version "${ARDUINO_TOOLCHAIN_VERSION}.0")

0 commit comments

Comments
 (0)