diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-07-17 19:57:51 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-07-17 19:57:51 (GMT) |
commit | 22ae78d92fc515664f4feb8e5b99de7621a292a5 (patch) | |
tree | 189d5e797a9fca0ce421c8d81abdfbbdd5fb1dbe /Source/cmInstallFilesCommand.cxx | |
parent | 42a00c96c17e03829d2b11a092f49d598ba527b0 (diff) | |
download | CMake-22ae78d92fc515664f4feb8e5b99de7621a292a5.zip CMake-22ae78d92fc515664f4feb8e5b99de7621a292a5.tar.gz CMake-22ae78d92fc515664f4feb8e5b99de7621a292a5.tar.bz2 |
fixe for files with paths
Diffstat (limited to 'Source/cmInstallFilesCommand.cxx')
-rw-r--r-- | Source/cmInstallFilesCommand.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmInstallFilesCommand.cxx b/Source/cmInstallFilesCommand.cxx index 6f45583..990bd47 100644 --- a/Source/cmInstallFilesCommand.cxx +++ b/Source/cmInstallFilesCommand.cxx @@ -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); } |