From: Debian Multimedia Maintainers Date: Sat, 4 Nov 2017 20:58:23 +0000 (+0000) Subject: Define NDEBUG to disable debug output X-Git-Tag: archive/raspbian/0.1.3-4+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4920257345acdd4462867913c0c36fe3bb32dd0b;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: