From 4920257345acdd4462867913c0c36fe3bb32dd0b Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Sat, 4 Nov 2017 20:58:23 +0000 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.30.2