Define NDEBUG to disable debug output
authorDebian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Sun, 25 Dec 2016 17:41:58 +0000 (17:41 +0000)
committerBenjamin Drung <bdrung@debian.org>
Sun, 25 Dec 2016 17:41:58 +0000 (17:41 +0000)
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

index 406e8268256a41567e110169b00cfb7d4b976c39..0450ab2b5754c2fa88a3add4ecb98f5083da6bca 100644 (file)
@@ -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: