diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2011-09-05 20:43:45 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2011-09-05 20:43:45 (GMT) |
commit | 49da3bdb2de4266955330f092b369a7afba0ca9d (patch) | |
tree | 0d937a19e41ac16d089cdf9c2d390483b38c1bf9 /Source/CPack/cmCPackDebGenerator.cxx | |
parent | 48ba9b2f197cde7f309b9ef3770e1bf003a7e8e8 (diff) | |
download | CMake-49da3bdb2de4266955330f092b369a7afba0ca9d.zip CMake-49da3bdb2de4266955330f092b369a7afba0ca9d.tar.gz CMake-49da3bdb2de4266955330f092b369a7afba0ca9d.tar.bz2 |
CPackDeb fix #10325 automagically use fakeroot for DEB if fakeroot is found
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 8c19bbd..b707e96 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -392,7 +392,10 @@ int cmCPackDebGenerator::createDeb() } std::string cmd; - cmd = "\""; + if (NULL != this->GetOption("CPACK_DEBIAN_FAKEROOT_EXECUTABLE")) { + cmd += this->GetOption("CPACK_DEBIAN_FAKEROOT_EXECUTABLE"); + } + cmd += " \""; cmd += cmakeExecutable; cmd += "\" -E tar cfz data.tar.gz "; |