Kaynağa Gözat

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

Sebastien Barre 24 yıl önce
ebeveyn
işleme
afba045028
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Source/cmMakefile.cxx

+ 1 - 1
Source/cmMakefile.cxx

@@ -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;