diff options
author | David Cole <david.cole@kitware.com> | 2011-08-01 19:29:13 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-08-01 19:29:13 (GMT) |
commit | ff5971635170af8754edb029b5345e17fb4de4fa (patch) | |
tree | f762069d1f29407b04467bd261765e285b9ee79f /Modules/Platform | |
parent | 80769cdd1e568c1dbc66651557d98bba0f70ea00 (diff) | |
download | CMake-ff5971635170af8754edb029b5345e17fb4de4fa.zip CMake-ff5971635170af8754edb029b5345e17fb4de4fa.tar.gz CMake-ff5971635170af8754edb029b5345e17fb4de4fa.tar.bz2 |
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.
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Windows-wcl386.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Windows-wcl386.cmake b/Modules/Platform/Windows-wcl386.cmake index c10fd78..3f8d65a 100644 --- a/Modules/Platform/Windows-wcl386.cmake +++ b/Modules/Platform/Windows-wcl386.cmake @@ -95,12 +95,12 @@ IF(NOT CMAKE_WATCOM_COMPILER_TESTS_RUN) EXECUTE_PROCESS(COMMAND ${CMAKE_TEST_COMPILER} -q -pc \"${testWatcomVersionFile}\" 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 ".*VERSION=(.*)" "\\1" compilerVersion "${compilerVersion}") - IF(NOT CMAKE_COMPILER_RETURN) + IF("${CMAKE_COMPILER_RETURN}" STREQUAL "0") SET(WATCOM16) SET(WATCOM17) SET(WATCOM18) |