diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-21 15:11:47 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-21 15:11:47 (GMT) |
commit | 252f9fc1b16611dac74345b4612ef0ce3ff437ff (patch) | |
tree | b8879b77216b4141744c58b59aa00289c4cb6280 /Source/cmSourceFilesRemoveCommand.cxx | |
parent | 7bda70b8364ff51de82bba4a8757860815a6c0a0 (diff) | |
download | CMake-252f9fc1b16611dac74345b4612ef0ce3ff437ff.zip CMake-252f9fc1b16611dac74345b4612ef0ce3ff437ff.tar.gz CMake-252f9fc1b16611dac74345b4612ef0ce3ff437ff.tar.bz2 |
BUG: fix generated files with no extension bug
Diffstat (limited to 'Source/cmSourceFilesRemoveCommand.cxx')
-rw-r--r-- | Source/cmSourceFilesRemoveCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceFilesRemoveCommand.cxx b/Source/cmSourceFilesRemoveCommand.cxx index 0d1d4de..e2cc875 100644 --- a/Source/cmSourceFilesRemoveCommand.cxx +++ b/Source/cmSourceFilesRemoveCommand.cxx @@ -67,7 +67,7 @@ bool cmSourceFilesRemoveCommand::InitialPass(std::vector<std::string> const& arg std::string path = cmSystemTools::GetFilenamePath(copy); std::string name_no_ext = cmSystemTools::GetFilenameName(copy.c_str()); name_no_ext = name_no_ext.substr(0, name_no_ext.length()-ext.length()); - if ( ext[0] == '.' ) + if ( ext.length() && ext[0] == '.' ) { ext = ext.substr(1); } |