diff options
author | Ashley Whetter <ashley@awhetter.co.uk> | 2016-01-28 21:29:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-02-03 16:13:17 (GMT) |
commit | 0205f882ae252998686f65b843a758268b4c62bc (patch) | |
tree | 33c19806797e81f6ef65ee3fbe53b0c1188dae72 /Source/cmListCommand.h | |
parent | a58abc69c23ef30fc2215eb72878af29f7e860fd (diff) | |
download | CMake-0205f882ae252998686f65b843a758268b4c62bc.zip CMake-0205f882ae252998686f65b843a758268b4c62bc.tar.gz CMake-0205f882ae252998686f65b843a758268b4c62bc.tar.bz2 |
list: Add FILTER subcommand (#3986)
Create a `list(FILTER)` command to filter lists by regular expression.
Diffstat (limited to 'Source/cmListCommand.h')
-rw-r--r-- | Source/cmListCommand.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmListCommand.h b/Source/cmListCommand.h index 5ea1d9f..25edee8 100644 --- a/Source/cmListCommand.h +++ b/Source/cmListCommand.h @@ -58,6 +58,12 @@ protected: bool HandleRemoveDuplicatesCommand(std::vector<std::string> const& args); bool HandleSortCommand(std::vector<std::string> const& args); bool HandleReverseCommand(std::vector<std::string> const& args); + bool HandleFilterCommand(std::vector<std::string> const& args); + bool FilterRegex(std::vector<std::string> const& args, + bool includeMatches, + std::string const& listName, + std::vector<std::string>& varArgsExpanded + ); bool GetList(std::vector<std::string>& list, const std::string& var); |