Преглед изворни кода

CPackDeb: Handle dirs for CONTROL_EXTRA correctly when packaging components

Copy the files specified in CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA to the right
directory when packaging components. This fixes #12061.
Signed-off-by: Eric NOULARD <[email protected]>
Martin Konrad пре 14 година
родитељ
комит
b22fcfb0c5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Source/CPack/cmCPackDebGenerator.cxx

+ 1 - 1
Source/CPack/cmCPackDebGenerator.cxx

@@ -491,7 +491,7 @@ int cmCPackDebGenerator::createDeb()
       {
       std::string filenamename =
         cmsys::SystemTools::GetFilenameName(i->c_str());
-      std::string localcopy = toplevel;
+      std::string localcopy = this->GetOption("WDIR");
       localcopy += "/";
       localcopy += filenamename;
       // if we can copy the file, it means it does exist, let's add it: