Procházet zdrojové kódy

fixe for files with paths

Ken Martin před 23 roky
rodič
revize
22ae78d92f
1 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. 9 1
      Source/cmInstallFilesCommand.cxx

+ 9 - 1
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);
       }