summaryrefslogtreecommitdiffstats
path: root/Source/cmGetTestPropertyCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-09-18 12:17:39 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-09-18 12:17:39 (GMT)
commit498c2e6dc5127969e18900855e8cf85ea35dd50b (patch)
tree954321b67247c91740ebf77f7cff4e5cd78d176f /Source/cmGetTestPropertyCommand.cxx
parentaab5d1297163d71cb2c152bdf47430f4c8e43269 (diff)
downloadCMake-498c2e6dc5127969e18900855e8cf85ea35dd50b.zip
CMake-498c2e6dc5127969e18900855e8cf85ea35dd50b.tar.gz
CMake-498c2e6dc5127969e18900855e8cf85ea35dd50b.tar.bz2
BUG: Fix which argument is which, also, fix the test to be less agressive
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);