From 22ae78d92fc515664f4feb8e5b99de7621a292a5 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 17 Jul 2002 15:57:51 -0400 Subject: fixe for files with paths --- Source/cmInstallFilesCommand.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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); } -- cgit v0.12