diff --git a/cmake/nuttx_mkversion.cmake b/cmake/nuttx_mkversion.cmake index 7185fdc610..4c5110b952 100644 --- a/cmake/nuttx_mkversion.cmake +++ b/cmake/nuttx_mkversion.cmake @@ -28,7 +28,8 @@ execute_process( WORKING_DIRECTORY ${NUTTX_DIR} ERROR_VARIABLE NUTTX_ERROR OUTPUT_VARIABLE NUTTX_VERSION - RESULT_VARIABLE VERSION_STATUS) + RESULT_VARIABLE VERSION_STATUS + OUTPUT_STRIP_TRAILING_WHITESPACE) if(${VERSION_STATUS} AND NOT ${VERSION_STATUS} EQUAL 0) set(NUTTX_VERSION "0.0.0")