diff options
author | Brad King <brad.king@kitware.com> | 2015-11-06 19:58:11 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-11-06 19:58:11 (GMT) |
commit | 39e830a98e81929ce95694f2f81d92ffd3f14d5b (patch) | |
tree | 509d3dc882e05a5138e15db16b55a1aecdab774d /Source | |
parent | 5bd78b0e999d28b163485232e434f5c7a5678ddd (diff) | |
parent | e5b70ed0137df3b72f279a039cbdae1a20784473 (diff) | |
download | CMake-39e830a98e81929ce95694f2f81d92ffd3f14d5b.zip CMake-39e830a98e81929ce95694f2f81d92ffd3f14d5b.tar.gz CMake-39e830a98e81929ce95694f2f81d92ffd3f14d5b.tar.bz2 |
Merge topic 'cpack-deb-config-file-source-field'
e5b70ed0 CPackDEB: added config file optional Source field
f2d98e2d CPackDEB: minor documentation and debug logging fixes
Diffstat (limited to 'Source')
-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"; |