mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
CMakeDetermineCompilerId: Drop unused code path
The execute_process command always exists so we never need to fall back on exec_program.
This commit is contained in:
@@ -314,7 +314,6 @@ Id flags: ${testflags}
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
if(COMMAND EXECUTE_PROCESS)
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND "${CMAKE_${lang}_COMPILER}"
|
COMMAND "${CMAKE_${lang}_COMPILER}"
|
||||||
${CMAKE_${lang}_COMPILER_ID_ARG1}
|
${CMAKE_${lang}_COMPILER_ID_ARG1}
|
||||||
@@ -326,17 +325,6 @@ Id flags: ${testflags}
|
|||||||
ERROR_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
ERROR_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
||||||
RESULT_VARIABLE CMAKE_${lang}_COMPILER_ID_RESULT
|
RESULT_VARIABLE CMAKE_${lang}_COMPILER_ID_RESULT
|
||||||
)
|
)
|
||||||
else()
|
|
||||||
exec_program(
|
|
||||||
"${CMAKE_${lang}_COMPILER}" ${CMAKE_${lang}_COMPILER_ID_DIR}
|
|
||||||
ARGS ${CMAKE_${lang}_COMPILER_ID_ARG1}
|
|
||||||
${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
|
||||||
${testflags}
|
|
||||||
\"${src}\"
|
|
||||||
OUTPUT_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
|
||||||
RETURN_VALUE CMAKE_${lang}_COMPILER_ID_RESULT
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Check the result of compilation.
|
# Check the result of compilation.
|
||||||
|
|||||||
Reference in New Issue
Block a user