diff options
| author | Benjamin Drung <bdrung@debian.org> | 2016-12-25 17:40:46 (GMT) |
|---|---|---|
| committer | Benjamin Drung <bdrung@debian.org> | 2016-12-25 17:40:46 (GMT) |
| commit | 3e438f41361a533fdefdd270b0326398592fa47b (patch) | |
| tree | 314f6e3eb08ce2736d9bf063b8a831bc28ee8ac3 | |
| parent | 203cbcfafbd264c4e2b6da19230c301926e86e47 (diff) | |
Define NDEBUG to disable debug output
Cherry-pick defining NDEBUG from upstream commit
5fa7eeb9a3df65452970566abc027db566012caf to disable debug output.
Closes: #822727
LP: #1649224
| -rw-r--r-- | debian/patches/ndebug.patch | 21 | ||||
| -rw-r--r-- | debian/patches/series | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/ndebug.patch b/debian/patches/ndebug.patch new file mode 100644 index 0000000..ddd9459 --- /dev/null +++ b/debian/patches/ndebug.patch @@ -0,0 +1,21 @@ +Description: Define NDEBUG to disable debug output + Cherry-pick defining NDEBUG from upstream commit + 5fa7eeb9a3df65452970566abc027db566012caf to disable debug output +Bug-Debian: https://bugs.debian.org/822727 +Bug-Ubuntu: https://launchpad.net/bugs/1649224 + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 406e826..0450ab2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -174,6 +174,10 @@ if (BUILD_SHARED_LIBS) + endif () + endif () + ++if (CMAKE_BUILD_TYPE STREQUAL "None") # As used by some distros. ++ add_definitions (-DNDEBUG) ++endif () ++ + + + # Installation configuration: diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..c807d92 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +ndebug.patch |
