From: Debian Multimedia Maintainers Date: Sun, 25 Dec 2016 17:41:58 +0000 (+0000) Subject: Define NDEBUG to disable debug output X-Git-Tag: archive/raspbian/0.1.3-4+rpi1~1^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=73ce29fb33c8781d41fbdee5252614ef73226e44;p=libsoxr.git Define NDEBUG to disable debug output Bug-Debian: https://bugs.debian.org/822727 Bug-Ubuntu: https://launchpad.net/bugs/1649224 Cherry-pick defining NDEBUG from upstream commit 5fa7eeb9a3df65452970566abc027db566012caf to disable debug output Gbp-Pq: Name ndebug.patch --- 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: