Merge topic 'CPackDeb-fakeroot'
49da3bd
CPackDeb fix #10325 automagically use fakeroot for DEB if fakeroot is found
This commit is contained in:
commit
682a989fdb
|
@ -133,6 +133,11 @@ IF(NOT DEFINED CPACK_DEBIAN_PACKAGE_SHLIBDEPS)
|
||||||
SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS OFF)
|
SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS OFF)
|
||||||
ENDIF(NOT DEFINED CPACK_DEBIAN_PACKAGE_SHLIBDEPS)
|
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)
|
IF(CPACK_DEBIAN_PACKAGE_SHLIBDEPS)
|
||||||
# dpkg-shlibdeps is a Debian utility for generating dependency list
|
# dpkg-shlibdeps is a Debian utility for generating dependency list
|
||||||
FIND_PROGRAM(SHLIBDEPS_EXECUTABLE dpkg-shlibdeps)
|
FIND_PROGRAM(SHLIBDEPS_EXECUTABLE dpkg-shlibdeps)
|
||||||
|
|
|
@ -392,7 +392,10 @@ int cmCPackDebGenerator::createDeb()
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string cmd;
|
std::string cmd;
|
||||||
cmd = "\"";
|
if (NULL != this->GetOption("CPACK_DEBIAN_FAKEROOT_EXECUTABLE")) {
|
||||||
|
cmd += this->GetOption("CPACK_DEBIAN_FAKEROOT_EXECUTABLE");
|
||||||
|
}
|
||||||
|
cmd += " \"";
|
||||||
cmd += cmakeExecutable;
|
cmd += cmakeExecutable;
|
||||||
cmd += "\" -E tar cfz data.tar.gz ";
|
cmd += "\" -E tar cfz data.tar.gz ";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue