diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2016-09-07 20:47:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-08 15:33:46 (GMT) |
commit | cb299acc27d5f80b2fc801f0f57358ec9f0303d1 (patch) | |
tree | db2426c946edfc3cd760edfc28f66a8bbedf4844 /Tests/RunCMake/cmake_parse_arguments/RunCMakeTest.cmake | |
parent | f506489d1ed222761f9ce752144a458290020e55 (diff) | |
download | CMake-cb299acc27d5f80b2fc801f0f57358ec9f0303d1.zip CMake-cb299acc27d5f80b2fc801f0f57358ec9f0303d1.tar.gz CMake-cb299acc27d5f80b2fc801f0f57358ec9f0303d1.tar.bz2 |
cmake_parse_arguments: Add option to read arguments from ARGC/ARGV#
The `ARGC`/`ARGV#` variables in function scope hold the original
arguments with no ;-list flattening. Add a way for functions to
cleanly parse arguments that may contain `;`. This also avoids
extra copying of the arguments.
Co-Author: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Tests/RunCMake/cmake_parse_arguments/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/cmake_parse_arguments/RunCMakeTest.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/cmake_parse_arguments/RunCMakeTest.cmake b/Tests/RunCMake/cmake_parse_arguments/RunCMakeTest.cmake index b89f1a5..22d7ee4 100644 --- a/Tests/RunCMake/cmake_parse_arguments/RunCMakeTest.cmake +++ b/Tests/RunCMake/cmake_parse_arguments/RunCMakeTest.cmake @@ -5,3 +5,8 @@ run_cmake(Initialization) run_cmake(Mix) run_cmake(CornerCases) run_cmake(Errors) +run_cmake(ArgvN) +run_cmake(BadArgvN1) +run_cmake(BadArgvN2) +run_cmake(BadArgvN3) +run_cmake(BadArgvN4) |