summaryrefslogtreecommitdiffstats
path: root/Source/cmGetTestPropertyCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGetTestPropertyCommand.cxx')
-rw-r--r--Source/cmGetTestPropertyCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGetTestPropertyCommand.cxx b/Source/cmGetTestPropertyCommand.cxx
index 3e75f88..d48cd6c 100644
--- a/Source/cmGetTestPropertyCommand.cxx
+++ b/Source/cmGetTestPropertyCommand.cxx
@@ -30,11 +30,11 @@ bool cmGetTestPropertyCommand::InitialPass(
}
std::string testName = args[0];
- std::string var = args[1];
+ std::string var = args[2];
cmTest *test = m_Makefile->GetTest(testName.c_str());
if (test)
{
- const char *prop = test->GetProperty(args[2].c_str());
+ const char *prop = test->GetProperty(args[1].c_str());
if (prop)
{
m_Makefile->AddDefinition(var.c_str(), prop);