mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
fixe for files with paths
This commit is contained in:
@@ -63,7 +63,15 @@ void cmInstallFilesCommand::FinalPass()
|
||||
{
|
||||
// replace any variables
|
||||
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
|
||||
targetSourceLists.push_back(testf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user