Prevent libsoxr from making so much console noise

This commit is contained in:
Jack Andersen 2016-05-14 12:39:07 -10:00
parent 89b0fa5cd6
commit 97d0505562
3 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,7 @@ set(WITH_LSR_BINDINGS OFF)
set(BUILD_TESTS OFF)
set(WITH_OPENMP OFF)
set(BUILD_SHARED_LIBS OFF)
set(SOXR_SILENT ON)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/soxr/cmake/Modules")
add_subdirectory(soxr)

View File

@ -49,6 +49,7 @@ cmake_dependent_option (WITH_AVFFT "Use libavcodec (LGPL) for SIMD DFT." OFF
"WITH_SIMD;NOT WITH_PFFFT" OFF)
cmake_dependent_option (WITH_PFFFT "Use PFFFT (BSD-like licence) for SIMD DFT." ON
"WITH_SIMD;NOT WITH_AVFFT" OFF)
option (SOXR_SILENT "Disable debug messages, even in debug mode" OFF)
if (UNIX)
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/lsr-tests)
cmake_dependent_option (BUILD_LSR_TESTS "Build LSR tests." OFF
@ -106,6 +107,10 @@ if (WITH_AVFFT)
endif ()
endif ()
if (SOXR_SILENT)
add_definitions (-DSOXR_SILENT=1)
endif ()
check_function_exists (lrint HAVE_LRINT)
check_include_files (fenv.h HAVE_FENV_H)
test_big_endian (WORDS_BIGENDIAN)

View File

@ -24,7 +24,7 @@
#define UNUSED
#endif
#if defined NDEBUG
#if defined NDEBUG || SOXR_SILENT
#ifdef __GNUC__
void lsx_dummy(char const *, ...);
#else