From 4648e656b40152b56fa1085a6752e996f6fb5df6 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Fri, 6 Mar 2020 15:36:16 +0100 Subject: [PATCH] Ignore lots of VST warnings to make the log lighter --- vst/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vst/CMakeLists.txt b/vst/CMakeLists.txt index 89c9bfc4..61e8f6e4 100644 --- a/vst/CMakeLists.txt +++ b/vst/CMakeLists.txt @@ -90,6 +90,18 @@ else() LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}/Contents/${VST3_PACKAGE_ARCHITECTURE}-linux") endif() +if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") + target_compile_options(${VSTPLUGIN_PRJ_NAME} PRIVATE + "-Wno-extra" + "-Wno-multichar" + "-Wno-reorder" + "-Wno-class-memaccess" + "-Wno-ignored-qualifiers" + "-Wno-unused-function" + "-Wno-unused-parameter" + "-Wno-unused-variable") +endif() + # To help debugging the link only if (FALSE) target_link_options(${VSTPLUGIN_PRJ_NAME} PRIVATE "-Wl,-no-undefined")