summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-11-06 19:13:10 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-11-06 19:13:10 (GMT)
commit11b8a44cfce1ad2383172760b9ac07a670b376fc (patch)
treede8530b52bc256cecd039c7d390883b56568f798 /Source
parent43d3a6d49e402fa735022fd0720355a369df75fe (diff)
parent9be64f34c299edfa69b126d419b4bd0619741656 (diff)
downloadCMake-11b8a44cfce1ad2383172760b9ac07a670b376fc.zip
CMake-11b8a44cfce1ad2383172760b9ac07a670b376fc.tar.gz
CMake-11b8a44cfce1ad2383172760b9ac07a670b376fc.tar.bz2
Merge topic 'fix-genex-CONFIG'
9be64f3 GenEx: Use case insensitive comparison for $<CONFIG:...>
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorExpressionEvaluator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx
index ee1b60a..2e123a4 100644
--- a/Source/cmGeneratorExpressionEvaluator.cxx
+++ b/Source/cmGeneratorExpressionEvaluator.cxx
@@ -16,6 +16,8 @@
#include "cmGeneratorExpressionDAGChecker.h"
#include "cmGeneratorExpression.h"
+#include <cmsys/String.h>
+
//----------------------------------------------------------------------------
#if !defined(__SUNPRO_CC) || __SUNPRO_CC > 0x510
static
@@ -253,7 +255,8 @@ static const struct ConfigurationTestNode : public cmGeneratorExpressionNode
return parameters.front().empty() ? "1" : "0";
}
- return *parameters.begin() == context->Config ? "1" : "0";
+ return cmsysString_strcasecmp(parameters.begin()->c_str(),
+ context->Config) == 0 ? "1" : "0";
}
} configurationTestNode;