diff options
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index c1c80a0..c38bedd 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1232,7 +1232,7 @@ const char* cmLocalGenerator::GetIncludeFlags(const char* lang) } std::string flags = includeFlags.str(); // remove trailing separators - if((sep[0] != ' ') && flags[flags.size()-1] == sep[0]) + if((sep[0] != ' ') && flags.size()>0 && flags[flags.size()-1] == sep[0]) { flags[flags.size()-1] = ' '; } |