cmake MAINTENANCE strip output of uncrutify version
diff --git a/CMakeModules/FindUncrustify.cmake b/CMakeModules/FindUncrustify.cmake
index ec353b8..3b013e8 100644
--- a/CMakeModules/FindUncrustify.cmake
+++ b/CMakeModules/FindUncrustify.cmake
@@ -8,7 +8,7 @@
find_program(UNCRUSTIFY uncrustify)
if(UNCRUSTIFY)
- execute_process(COMMAND ${UNCRUSTIFY} --version OUTPUT_VARIABLE VERSION)
+ execute_process(COMMAND ${UNCRUSTIFY} --version OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE VERSION)
string(FIND ${VERSION} "-" START_IDX)
math(EXPR START_IDX "${START_IDX} + 1")
string(SUBSTRING "${VERSION}" ${START_IDX} -1 VERSION)