diff options
author | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2015-11-03 23:19:58 (GMT) |
---|---|---|
committer | Domen Vrankar <domen.vrankar@gmail.com> | 2015-11-04 20:46:22 (GMT) |
commit | e5b70ed0137df3b72f279a039cbdae1a20784473 (patch) | |
tree | 45bf02d6c0dd9e0f9e9083f5858e9e0ee5d8840e /Source/CPack/cmCPackDebGenerator.cxx | |
parent | f2d98e2d3c9d7581703b124d3436312949dda141 (diff) | |
download | CMake-e5b70ed0137df3b72f279a039cbdae1a20784473.zip CMake-e5b70ed0137df3b72f279a039cbdae1a20784473.tar.gz CMake-e5b70ed0137df3b72f279a039cbdae1a20784473.tar.bz2 |
CPackDEB: added config file optional Source field
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 04efb71..13c8d8f 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -339,6 +339,9 @@ int cmCPackDebGenerator::createDeb() this->GetOption("GEN_CPACK_DEBIAN_PACKAGE_PROVIDES"); const char* debian_pkg_replaces = this->GetOption("GEN_CPACK_DEBIAN_PACKAGE_REPLACES"); + const char* debian_pkg_source = + this->GetOption("GEN_CPACK_DEBIAN_PACKAGE_SOURCE"); + { // the scope is needed for cmGeneratedFileStream cmGeneratedFileStream out(ctlfilename.c_str()); @@ -347,6 +350,10 @@ int cmCPackDebGenerator::createDeb() out << "Section: " << debian_pkg_section << "\n"; out << "Priority: " << debian_pkg_priority << "\n"; out << "Architecture: " << debian_pkg_arch << "\n"; + if(debian_pkg_source && *debian_pkg_source) + { + out << "Source: " << debian_pkg_source << "\n"; + } if(debian_pkg_dep && *debian_pkg_dep) { out << "Depends: " << debian_pkg_dep << "\n"; |