diff options
author | Brad King <brad.king@kitware.com> | 2019-06-12 16:48:04 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-06-12 16:48:13 (GMT) |
commit | f07200fe163640f708c62de3cbdc0fb49a7e0471 (patch) | |
tree | 785ba40885c82aa0fa62de210b92ea30a027c7ea /Tests/RunCMake/CTestCommandExpandLists/expandEmptyCommand.cmake | |
parent | c1580ecc13cf2dea3f047d1018e705bd34cecc53 (diff) | |
parent | e791ffac61912f6540742aabaf4cb78a4d475a16 (diff) | |
download | CMake-f07200fe163640f708c62de3cbdc0fb49a7e0471.zip CMake-f07200fe163640f708c62de3cbdc0fb49a7e0471.tar.gz CMake-f07200fe163640f708c62de3cbdc0fb49a7e0471.tar.bz2 |
Merge topic 'add-test-command-expand-lists'
e791ffac61 add_test: Add COMMAND_EXPAND_LISTS option
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3422
Diffstat (limited to 'Tests/RunCMake/CTestCommandExpandLists/expandEmptyCommand.cmake')
-rw-r--r-- | Tests/RunCMake/CTestCommandExpandLists/expandEmptyCommand.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestCommandExpandLists/expandEmptyCommand.cmake b/Tests/RunCMake/CTestCommandExpandLists/expandEmptyCommand.cmake new file mode 100644 index 0000000..b75828e --- /dev/null +++ b/Tests/RunCMake/CTestCommandExpandLists/expandEmptyCommand.cmake @@ -0,0 +1,10 @@ +include(CTest) + +set(argv /bin/true) +list(POP_BACK argv) + +add_test( + NAME CommandExpandEmptyList + COMMAND "$<JOIN:${argv},;>" + COMMAND_EXPAND_LISTS +) |