We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c624d2 commit 82ef114Copy full SHA for 82ef114
Arduino/System/BoardToolchain.cmake
@@ -102,6 +102,7 @@ function (SetupBoardToolchain)
102
if (EXISTS "${ARDUINO_INSTALL_PATH}/lib/version.txt")
103
file(READ "${ARDUINO_INSTALL_PATH}/lib/version.txt" _version)
104
string(STRIP "${_version}" _version)
105
+ string(REGEX REPLACE "^([0-9.]+).*" "\\1" _version "${_version}") # added to truncate "1.8.19+dfsg1-1" to "1.8.19"
106
if(_version)
107
set(_path "${ARDUINO_INSTALL_PATH}")
108
string(REPLACE "." "0" _version "${_version}")
0 commit comments