summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-10-12 14:57:36 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-10-12 14:57:36 (GMT)
commit107e01c8dc6b4890749b9fb3fe249a21787c00d3 (patch)
tree700ea1b35280d503ef34d244a4bc66894e552f43 /Source
parentb20fd1af117df4defd8ecd6f34dfb65d6c9c7ad6 (diff)
downloadCMake-107e01c8dc6b4890749b9fb3fe249a21787c00d3.zip
CMake-107e01c8dc6b4890749b9fb3fe249a21787c00d3.tar.gz
CMake-107e01c8dc6b4890749b9fb3fe249a21787c00d3.tar.bz2
ENH: fix for bug -gdwarf getting removed
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 319f460..d685c17 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -866,6 +866,10 @@ std::string cmGlobalXCodeGenerator::ExtractFlag(const char* flag,
std::string::size_type pos = flags.find(flag);
if(pos != flags.npos)
{
+ if(flags[pos + strlen(flag)] != ' ')
+ {
+ return flags;
+ }
retFlag = flag;
// remove the flag
flags[pos]=' ';