summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-12-10 19:57:22 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-21 14:52:28 (GMT)
commita95b47154ef0508cb30c82b79dab75526743498a (patch)
tree53d14ddcb2402e42947f71e39b8d8c9a32028fc8 /Utilities
parenta53e0168c344111de301ad67498ad89862b58cdf (diff)
downloadCMake-a95b47154ef0508cb30c82b79dab75526743498a.zip
CMake-a95b47154ef0508cb30c82b79dab75526743498a.tar.gz
CMake-a95b47154ef0508cb30c82b79dab75526743498a.tar.bz2
Utilities/Release: Add optional remote launcher to ssh calls
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Release/release_cmake.cmake11
1 files changed, 7 insertions, 4 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake
index 0a3d324..0d9c784 100644
--- a/Utilities/Release/release_cmake.cmake
+++ b/Utilities/Release/release_cmake.cmake
@@ -19,6 +19,9 @@ endif()
if(NOT DEFINED RUN_SHELL)
set(RUN_SHELL "/bin/sh")
endif()
+if(NOT DEFINED RUN_LAUNCHER)
+ set(RUN_LAUNCHER "")
+endif()
if(NOT DEFINED PROCESSORS)
set(PROCESSORS 1)
endif()
@@ -52,11 +55,11 @@ message("Creating CMake release ${CMAKE_CREATE_VERSION} on ${HOST} with parallel
macro(remote_command comment command)
message("${comment}")
if(${ARGC} GREATER 2)
- message("ssh ${HOST} ${command}")
- execute_process(COMMAND ssh ${HOST} ${command} RESULT_VARIABLE result INPUT_FILE ${ARGV2})
+ message("ssh ${HOST} ${RUN_LAUNCHER} ${command}")
+ execute_process(COMMAND ssh ${HOST} ${RUN_LAUNCHER} ${command} RESULT_VARIABLE result INPUT_FILE ${ARGV2})
else()
- message("ssh ${HOST} ${command}")
- execute_process(COMMAND ssh ${HOST} ${command} RESULT_VARIABLE result)
+ message("ssh ${HOST} ${RUN_LAUNCHER} ${command}")
+ execute_process(COMMAND ssh ${HOST} ${RUN_LAUNCHER} ${command} RESULT_VARIABLE result)
endif()
if(${result} GREATER 0)
message(FATAL_ERROR "Error running command: ${command}, return value = ${result}")