summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMartin Konrad <konrad@ikp.tu-darmstadt.de>2011-04-09 07:30:19 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2011-04-09 07:30:19 (GMT)
commitb22fcfb0c55ec145a4cf7405120c708fa136d928 (patch)
tree6b325d80c343dfe623a9621defd57ccc731cf0f2 /Source
parent4e9506ac31705f5099f226128b98ae12a4ba9772 (diff)
downloadCMake-b22fcfb0c55ec145a4cf7405120c708fa136d928.zip
CMake-b22fcfb0c55ec145a4cf7405120c708fa136d928.tar.gz
CMake-b22fcfb0c55ec145a4cf7405120c708fa136d928.tar.bz2
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 <eric.noulard@gmail.com>
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index 5665404..8c19bbd 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/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: