2 #! \brief Get the gcc version
4 if(CMAKE_COMPILER_IS_GNUCXX)
6 COMMAND ${path_to_gcc} -dumpversion
10 OUTPUT_STRIP_TRAILING_WHITESPACE
11 ERROR_STRIP_TRAILING_WHITESPACE
14 message(FATAL_ERROR "Failed to obtain compiler version running [${path_to_gcc} -dumpversion]: ${error}
")
16 set(${output_var} ${output} PARENT_SCOPE)
usFunctionGetGccVersion(path_to_gcc, output_var)
Get the gcc version.