diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-09 14:37:14 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-09 14:37:14 (GMT) |
commit | 97ed474431426a50e6080a1cef8098fce297a940 (patch) | |
tree | fca450c5d1c37a8066c826b58b71bde6f6156885 /Source/cmGetTestPropertyCommand.cxx | |
parent | 7e3250da2fa0155a8c83b3aadef0407a701f2953 (diff) | |
download | CMake-97ed474431426a50e6080a1cef8098fce297a940.zip CMake-97ed474431426a50e6080a1cef8098fce297a940.tar.gz CMake-97ed474431426a50e6080a1cef8098fce297a940.tar.bz2 |
Refactor: cmTest::GetProperty returns cmProp
Diffstat (limited to 'Source/cmGetTestPropertyCommand.cxx')
-rw-r--r-- | Source/cmGetTestPropertyCommand.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGetTestPropertyCommand.cxx b/Source/cmGetTestPropertyCommand.cxx index cf8c1d5..077353e 100644 --- a/Source/cmGetTestPropertyCommand.cxx +++ b/Source/cmGetTestPropertyCommand.cxx @@ -4,6 +4,7 @@ #include "cmExecutionStatus.h" #include "cmMakefile.h" +#include "cmProperty.h" #include "cmTest.h" bool cmGetTestPropertyCommand(std::vector<std::string> const& args, @@ -19,12 +20,12 @@ bool cmGetTestPropertyCommand(std::vector<std::string> const& args, cmMakefile& mf = status.GetMakefile(); cmTest* test = mf.GetTest(testName); if (test) { - const char* prop = nullptr; + cmProp prop; if (!args[1].empty()) { prop = test->GetProperty(args[1]); } if (prop) { - mf.AddDefinition(var, prop); + mf.AddDefinition(var, prop->c_str()); return true; } } |