From e791ffac61912f6540742aabaf4cb78a4d475a16 Mon Sep 17 00:00:00 2001 From: Sergey Bobrenok Date: Wed, 15 May 2019 22:10:39 +0700 Subject: 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 --- Source/cmTest.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Source/cmTest.cxx') diff --git a/Source/cmTest.cxx b/Source/cmTest.cxx index 7d45cf5e3f..01f2b96adc 100644 --- a/Source/cmTest.cxx +++ b/Source/cmTest.cxx @@ -8,7 +8,8 @@ #include "cmSystemTools.h" cmTest::cmTest(cmMakefile* mf) - : Backtrace(mf->GetBacktrace()) + : CommandExpandLists(false) + , Backtrace(mf->GetBacktrace()) { this->Makefile = mf; this->OldStyle = true; @@ -59,3 +60,13 @@ void cmTest::AppendProperty(const std::string& prop, const char* value, { this->Properties.AppendProperty(prop, value, asString); } + +bool cmTest::GetCommandExpandLists() const +{ + return this->CommandExpandLists; +} + +void cmTest::SetCommandExpandLists(bool b) +{ + this->CommandExpandLists = b; +} -- cgit v1.2.1