Watcom: Use correct args for execute_process call (#11866)
I botched an exec_program to execute_process translation on Friday. RESULT_VARIABLE is the correct argument to execute_process.
This commit is contained in:
parent
80769cdd1e
commit
ff59716351
|
@ -95,12 +95,12 @@ IF(NOT CMAKE_WATCOM_COMPILER_TESTS_RUN)
|
||||||
EXECUTE_PROCESS(COMMAND ${CMAKE_TEST_COMPILER}
|
EXECUTE_PROCESS(COMMAND ${CMAKE_TEST_COMPILER}
|
||||||
-q -pc \"${testWatcomVersionFile}\"
|
-q -pc \"${testWatcomVersionFile}\"
|
||||||
OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT
|
OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT
|
||||||
RETURN_VALUE CMAKE_COMPILER_RETURN
|
RESULT_VARIABLE CMAKE_COMPILER_RETURN
|
||||||
)
|
)
|
||||||
STRING(REGEX REPLACE "\n" " " compilerVersion "${CMAKE_COMPILER_OUTPUT}")
|
STRING(REGEX REPLACE "\n" " " compilerVersion "${CMAKE_COMPILER_OUTPUT}")
|
||||||
STRING(REGEX REPLACE ".*VERSION=(.*)" "\\1"
|
STRING(REGEX REPLACE ".*VERSION=(.*)" "\\1"
|
||||||
compilerVersion "${compilerVersion}")
|
compilerVersion "${compilerVersion}")
|
||||||
IF(NOT CMAKE_COMPILER_RETURN)
|
IF("${CMAKE_COMPILER_RETURN}" STREQUAL "0")
|
||||||
SET(WATCOM16)
|
SET(WATCOM16)
|
||||||
SET(WATCOM17)
|
SET(WATCOM17)
|
||||||
SET(WATCOM18)
|
SET(WATCOM18)
|
||||||
|
|
Loading…
Reference in New Issue