summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorAdam Weisi <adam.weisi@intel.com>2017-04-13 17:10:04 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-10 12:03:06 (GMT)
commitd6051ca39e2ac8e5afc8f6308fd1bda7d1e8c17b (patch)
tree231f86c5da5035fb62d94c2484de56785b3bf968 /Tests/RunCMake/CMakeLists.txt
parentc095e90f3af78fb3421c80b725ebc6ad9ec85999 (diff)
downloadCMake-d6051ca39e2ac8e5afc8f6308fd1bda7d1e8c17b.zip
CMake-d6051ca39e2ac8e5afc8f6308fd1bda7d1e8c17b.tar.gz
CMake-d6051ca39e2ac8e5afc8f6308fd1bda7d1e8c17b.tar.bz2
execute_process: Add option to get results of every child
Add a `RESULTS_VARIABLE` option to get the results of all children in a pipeline of one or more `COMMAND`s.
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 79f487d..91e0cdd 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -181,8 +181,10 @@ add_RunCMake_test(add_custom_target)
add_RunCMake_test(add_dependencies)
add_RunCMake_test(add_subdirectory)
add_RunCMake_test(build_command)
+add_executable(exit_code exit_code.c)
+set(execute_process_ARGS -DEXIT_CODE_EXE=$<TARGET_FILE:exit_code>)
if(NOT CMake_TEST_EXTERNAL_CMAKE)
- set(execute_process_ARGS -DTEST_ENCODING_EXE=$<TARGET_FILE:testEncoding>)
+ list(APPEND execute_process_ARGS -DTEST_ENCODING_EXE=$<TARGET_FILE:testEncoding>)
endif()
add_RunCMake_test(execute_process)
add_RunCMake_test(export)