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/compare_options.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/compare_options.cmake')
-rw-r--r-- | Tests/RunCMake/CTestCommandExpandLists/compare_options.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestCommandExpandLists/compare_options.cmake b/Tests/RunCMake/CTestCommandExpandLists/compare_options.cmake new file mode 100644 index 0000000..a32e579 --- /dev/null +++ b/Tests/RunCMake/CTestCommandExpandLists/compare_options.cmake @@ -0,0 +1,14 @@ +set(range 1 2 3 4 5 6 7 8 9 10) +set(aargs "") +set(bargs "") +foreach(n IN LISTS range) + set(aval "${A${n}ARG}") + set(bval "${B${n}ARG}") + if(aval OR bval) + list(APPEND aargs "\"${aval}\"") + list(APPEND bargs "\"${bval}\"") + endif() +endforeach() +if(NOT "${aargs}" STREQUAL "${bargs}") + message(FATAL_ERROR "COMPARE_OPTIONS: \n\t${aargs} != \n\t${bargs}") +endif() |