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:
parent
759d6fa782
commit
8dd49d2fac
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ if(${VERSION_STATUS} AND NOT ${VERSION_STATUS} EQUAL 0)
|
||||||
else()
|
else()
|
||||||
string(REPLACE "-" ";" NUTTX_VERSION ${NUTTX_VERSION})
|
string(REPLACE "-" ";" NUTTX_VERSION ${NUTTX_VERSION})
|
||||||
list(GET NUTTX_VERSION 1 NUTTX_VERSION)
|
list(GET NUTTX_VERSION 1 NUTTX_VERSION)
|
||||||
|
string(STRIP "${NUTTX_VERSION}" NUTTX_VERSION)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
string(REPLACE "." ";" NUTTX_CHECK_VERSION ${NUTTX_VERSION})
|
string(REPLACE "." ";" NUTTX_CHECK_VERSION ${NUTTX_VERSION})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue