cmake(bugfix):fix VERSION genarator strip error in CMake build

fix genarate include/nuttx/version.h
define CONFIG_VERSION_STRING "12.5.1
" missing closing quote
^~~~~~~~~~~~~~~~~~~~~~
define CONFIG_VERSION_MAJOR 12

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2025-06-18 20:45:51 +08:00 committed by Matteo Golin
parent 759d6fa782
commit 8dd49d2fac

View file

@ -38,6 +38,7 @@ if(${VERSION_STATUS} AND NOT ${VERSION_STATUS} EQUAL 0)
else()
string(REPLACE "-" ";" NUTTX_VERSION ${NUTTX_VERSION})
list(GET NUTTX_VERSION 1 NUTTX_VERSION)
string(STRIP "${NUTTX_VERSION}" NUTTX_VERSION)
endif()
string(REPLACE "." ";" NUTTX_CHECK_VERSION ${NUTTX_VERSION})