summaryrefslogtreecommitdiffstats
path: root/Source/cmUnsetCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-22 13:41:30 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-22 13:41:30 (GMT)
commit1744ad9257c3b9fc5badc31d746acd8d2fa30f9e (patch)
tree62471abb61d4018627ec4dc01a3ede59ddc3c90b /Source/cmUnsetCommand.cxx
parentd121a8cb66c7f610c57aa6447f7671a5dd4a8730 (diff)
parent4fe963f656c48b1f2fd0b4a2f427bb376f619c37 (diff)
downloadCMake-1744ad9257c3b9fc5badc31d746acd8d2fa30f9e.zip
CMake-1744ad9257c3b9fc5badc31d746acd8d2fa30f9e.tar.gz
CMake-1744ad9257c3b9fc5badc31d746acd8d2fa30f9e.tar.bz2
Merge topic 'add-cmHasLiteralPrefix'
4fe963f Use new cmHasLiteralPrefix function 7d4b2b2 cmStandardIncludes: Add new cmHasLiteralPrefix function.
Diffstat (limited to 'Source/cmUnsetCommand.cxx')
-rw-r--r--Source/cmUnsetCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmUnsetCommand.cxx b/Source/cmUnsetCommand.cxx
index 84f3029..053cdfc 100644
--- a/Source/cmUnsetCommand.cxx
+++ b/Source/cmUnsetCommand.cxx
@@ -24,7 +24,7 @@ bool cmUnsetCommand::InitialPass(std::vector<std::string> const& args,
const char* variable = args[0].c_str();
// unset(ENV{VAR})
- if (!strncmp(variable,"ENV{",4) && strlen(variable) > 5)
+ if (cmHasLiteralPrefix(variable, "ENV{") && strlen(variable) > 5)
{
// what is the variable name
char *envVarName = new char [strlen(variable)];