mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
Merge topic 'cpack-debian-multiarch'
71c631c435CPack/DEB: Add Multi-Arch support55524c48a4CPack/DEB: Add Multi-Arch supporta022705a2eTests/RunCMake/CPack: Improve README Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9609
This commit is contained in:
@@ -789,6 +789,21 @@ bool cmCPackDebGenerator::createDeb()
|
||||
if (cmNonempty(debian_pkg_replaces)) {
|
||||
controlValues["Replaces"] = *debian_pkg_replaces;
|
||||
}
|
||||
cmValue debian_pkg_multiarch =
|
||||
this->GetOption("GEN_CPACK_DEBIAN_PACKAGE_MULTIARCH");
|
||||
if (cmNonempty(debian_pkg_multiarch)) {
|
||||
// check for valid values: same, foreign, allowed
|
||||
if (*debian_pkg_multiarch != "same" &&
|
||||
*debian_pkg_multiarch != "foreign" &&
|
||||
*debian_pkg_multiarch != "allowed") {
|
||||
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
||||
"Error: invalid value for Multi-Arch: "
|
||||
<< *debian_pkg_multiarch
|
||||
<< ". Valid values are: same, foreign, allowed\n");
|
||||
return false;
|
||||
}
|
||||
controlValues["Multi-Arch"] = *debian_pkg_multiarch;
|
||||
}
|
||||
|
||||
const std::string strGenWDIR(this->GetOption("GEN_WDIR"));
|
||||
const std::string shlibsfilename = strGenWDIR + "/shlibs";
|
||||
|
||||
Reference in New Issue
Block a user