summaryrefslogtreecommitdiffstats
path: root/Source/cmTestGenerator.h
diff options
context:
space:
mode:
authorSergey Bobrenok <bobrofon@gmail.com>2019-05-15 15:10:39 (GMT)
committerBrad King <brad.king@kitware.com>2019-06-07 17:14:29 (GMT)
commite791ffac61912f6540742aabaf4cb78a4d475a16 (patch)
treeb8aa85f7406bfc599ce113ecf32f5f0312d2db65 /Source/cmTestGenerator.h
parente2414ee13d1fad8b6775581d01975109c9867854 (diff)
downloadCMake-e791ffac61912f6540742aabaf4cb78a4d475a16.zip
CMake-e791ffac61912f6540742aabaf4cb78a4d475a16.tar.gz
CMake-e791ffac61912f6540742aabaf4cb78a4d475a16.tar.bz2
add_test: Add COMMAND_EXPAND_LISTS option
Add a `COMMAND_EXPAND_LISTS` option to the `add_test` command to cause `;`-separated lists produced by generator expressions to be expanded into multiple arguments. The `add_custom_command` command already has such an option. Fixes: #17284
Diffstat (limited to 'Source/cmTestGenerator.h')
-rw-r--r--Source/cmTestGenerator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTestGenerator.h b/Source/cmTestGenerator.h
index 8b9cf78..7ac68eb 100644
--- a/Source/cmTestGenerator.h
+++ b/Source/cmTestGenerator.h
@@ -11,6 +11,7 @@
#include <string>
#include <vector>
+class cmGeneratorExpression;
class cmLocalGenerator;
class cmTest;
@@ -38,6 +39,9 @@ public:
private:
void GenerateInternalProperties(std::ostream& os);
+ std::vector<std::string> EvaluateCommandLineArguments(
+ const std::vector<std::string>& argv, cmGeneratorExpression& ge,
+ const std::string& config) const;
protected:
void GenerateScriptConfigs(std::ostream& os, Indent indent) override;