summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-08-19 16:14:24 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-08-19 16:14:24 (GMT)
commitafba0450282eeb90c31ba92c5182e5570bd85517 (patch)
treef1a111d276b8fd6a092e8900d8172877df7fc169
parent4dda26b40a51d628e368542239653af6764877e2 (diff)
downloadCMake-afba0450282eeb90c31ba92c5182e5570bd85517.zip
CMake-afba0450282eeb90c31ba92c5182e5570bd85517.tar.gz
CMake-afba0450282eeb90c31ba92c5182e5570bd85517.tar.bz2
gcc and MSVC clash on basic_string::compare(), let's try substr()
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 8cddaf5..633c5c9 100644
--- a/Source/cmMakefile.cxx
+++ b/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;