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:
parent
d3a0c769b0
commit
837698b935
@ -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")
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user