Use new cmHasLiteralPrefix function

This commit is contained in:
Stephen Kelly
2013-11-20 02:12:00 +01:00
parent 7d4b2b2ef3
commit 4fe963f656
16 changed files with 33 additions and 34 deletions

View File

@@ -23,7 +23,7 @@ bool cmSetCommand
// watch for ENV signatures
const char* variable = args[0].c_str(); // VAR is always first
if (!strncmp(variable,"ENV{",4) && strlen(variable) > 5)
if (cmHasLiteralPrefix(variable, "ENV{") && strlen(variable) > 5)
{
// what is the variable name
char *varName = new char [strlen(variable)];