gcc and MSVC clash on basic_string::compare(), let's try substr()

This commit is contained in:
Sebastien Barre 2001-08-19 12:14:24 -04:00
parent 4dda26b40a
commit afba045028
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,7 @@ void cmMakefile::ExpandVariablesInString(std::string& source,
// $ENV{var} case
else if(markerPos+4 < source.size() &&
source[markerPos+4] == '{' &&
!source.compare(markerPos+1, 3, "ENV"))
!source.substr(markerPos+1, 3).compare("ENV"))
{
endVariableMarker = '}';
markerStartSize = 5;