mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
BUG: fix generated files with no extension bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user