mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Use new cmHasLiteralPrefix function
This commit is contained in:
@@ -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)];
|
||||
|
||||
Reference in New Issue
Block a user