cmake/compiler/: drop ERROR_QUIET when looking for compiler --version

Commit 40c2e08e82 ("xcc/cmake: don't discard stderr; don't (ever!) use
ERROR_QUIET") fixed xcc but the corresponding code is duplicated. Fix
the duplicates too.

See that commit for the issue description, longer commit message and
rationale.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2023-11-30 23:55:26 +00:00 committed by Fabio Baltieri
parent d3a0c769b0
commit 837698b935
3 changed files with 7 additions and 7 deletions

View File

@ -17,12 +17,12 @@ execute_process(
COMMAND ${CMAKE_C_COMPILER} --version
RESULT_VARIABLE ret
OUTPUT_VARIABLE full_version_output
ERROR_QUIET
)
if(ret)
message(FATAL_ERROR "Executing the below command failed. Are permissions set correctly?
'${CMAKE_C_COMPILER} --version'"
'${CMAKE_C_COMPILER} --version'
${full_version_output}"
)
else()
set(ARCMWDT_MIN_REQUIRED_VERS "2022.09")

View File

@ -28,13 +28,13 @@ endif()
execute_process(
COMMAND ${CMAKE_C_COMPILER} --version
RESULT_VARIABLE ret
OUTPUT_QUIET
ERROR_QUIET
OUTPUT_VARIABLE stdoutput
)
if(ret)
message(FATAL_ERROR "Executing the below command failed. "
"Are permissions set correctly? '${CMAKE_C_COMPILER} --version' "
"${stdoutput}"
"And is the license setup correctly ?"
)
endif()

View File

@ -18,12 +18,12 @@ endif()
execute_process(
COMMAND ${CMAKE_C_COMPILER} --version
RESULT_VARIABLE ret
OUTPUT_QUIET
ERROR_QUIET
OUTPUT_VARIABLE stdoutput
)
if(ret)
message(FATAL_ERROR "Executing the below command failed. Are permissions set correctly?
'${CMAKE_C_COMPILER} --version'
${CMAKE_C_COMPILER} --version
${stdoutput}
"
)
endif()