summaryrefslogtreecommitdiff
path: root/Source/cmTest.cxx
diff options
context:
space:
mode:
authorSergey Bobrenok <bobrofon@gmail.com>2019-05-15 22:10:39 +0700
committerBrad King <brad.king@kitware.com>2019-06-07 13:14:29 -0400
commite791ffac61912f6540742aabaf4cb78a4d475a16 (patch)
treeb8aa85f7406bfc599ce113ecf32f5f0312d2db65 /Source/cmTest.cxx
parente2414ee13d1fad8b6775581d01975109c9867854 (diff)
downloadcmake-e791ffac61912f6540742aabaf4cb78a4d475a16.tar.gz
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/cmTest.cxx')
-rw-r--r--Source/cmTest.cxx13
1 files changed, 12 insertions, 1 deletions
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;
+}