Commit 4916bd6e authored by jcfr's avatar jcfr
Browse files

BUG: slicerFunctionGetGccVersion - Make sure trailing spaces are trimmed

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15650 3bd1e089-480b-0410-8dfb-8563597acbee
parent 727dede0
......@@ -25,6 +25,8 @@ FUNCTION(slicerFunctionGetGccVersion path_to_gcc output_var)
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_VARIABLE error
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
)
IF(result)
MESSAGE(FATAL_ERROR "Failed to obtain compiler version running [${path_to_gcc} -dumpversion]: ${error}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment