summaryrefslogtreecommitdiffstats
path: root/Modules/CPackDeb.cmake
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2011-09-05 20:43:45 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2011-09-05 20:43:45 (GMT)
commit49da3bdb2de4266955330f092b369a7afba0ca9d (patch)
tree0d937a19e41ac16d089cdf9c2d390483b38c1bf9 /Modules/CPackDeb.cmake
parent48ba9b2f197cde7f309b9ef3770e1bf003a7e8e8 (diff)
downloadCMake-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 'Modules/CPackDeb.cmake')
-rw-r--r--Modules/CPackDeb.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake
index 90c80a4..d1c0bbe 100644
--- a/Modules/CPackDeb.cmake
+++ b/Modules/CPackDeb.cmake
@@ -133,6 +133,11 @@ IF(NOT DEFINED CPACK_DEBIAN_PACKAGE_SHLIBDEPS)
SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS OFF)
ENDIF(NOT DEFINED CPACK_DEBIAN_PACKAGE_SHLIBDEPS)
+FIND_PROGRAM(FAKEROOT_EXECUTABLE fakeroot)
+IF(FAKEROOT_EXECUTABLE)
+ SET(CPACK_DEBIAN_FAKEROOT_EXECUTABLE ${FAKEROOT_EXECUTABLE})
+ENDIF(FAKEROOT_EXECUTABLE)
+
IF(CPACK_DEBIAN_PACKAGE_SHLIBDEPS)
# dpkg-shlibdeps is a Debian utility for generating dependency list
FIND_PROGRAM(SHLIBDEPS_EXECUTABLE dpkg-shlibdeps)