fixe for files with paths

This commit is contained in:
Ken Martin 2002-07-17 15:57:51 -04:00
parent 42a00c96c1
commit 22ae78d92f
1 changed files with 9 additions and 1 deletions

View File

@ -63,7 +63,15 @@ void cmInstallFilesCommand::FinalPass()
{ {
// replace any variables // replace any variables
std::string temps = *s; std::string temps = *s;
testf = cmSystemTools::GetFilenameWithoutLastExtension(temps) + ext; if (cmSystemTools::GetFilenamePath(temps).size() > 0)
{
testf = cmSystemTools::GetFilenamePath(temps) + "/" +
cmSystemTools::GetFilenameWithoutLastExtension(temps) + ext;
}
else
{
testf = cmSystemTools::GetFilenameWithoutLastExtension(temps) + ext;
}
// add to the result // add to the result
targetSourceLists.push_back(testf); targetSourceLists.push_back(testf);
} }