option(TRACE_IN_RELEASE "Output debug messages even in release mode" OFF)
if(TRACE_IN_RELEASE)
- set(TAGLIB_TRACE_IN_RELEASE TRUE)
+ set(TRACE_IN_RELEASE TRUE)
endif()
configure_file(taglib/taglib_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib_config.h)
/* Defined if you have libz */
#cmakedefine HAVE_ZLIB 1
+/* Indicates whether debug messages are shown even in release mode */
+#cmakedefine TRACE_IN_RELEASE 1
+
#cmakedefine TESTS_DIR "@TESTS_DIR@"
***************************************************************************/
#include "config.h"
-#include "taglib_config.h"
#include "tdebug.h"
#include "tstring.h"
void TagLib::debug(const String &s)
{
-#if !defined(NDEBUG) || defined(TAGLIB_TRACE_IN_RELEASE)
+#if !defined(NDEBUG) || defined(TRACE_IN_RELEASE)
getDebugListener()->printMessage("TagLib: " + s + "\n");
void TagLib::debugData(const ByteVector &v)
{
-#if !defined(NDEBUG) || defined(TAGLIB_TRACE_IN_RELEASE)
+#if !defined(NDEBUG) || defined(TRACE_IN_RELEASE)
for(size_t i = 0; i < v.size(); ++i)
{