From d91bec726ea4f793270320b88db5ee70e4b8c876 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Mon, 31 Aug 2020 10:43:26 +0200 Subject: [PATCH] Fixes for MinGW --- editor/cmake/Vstgui.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/editor/cmake/Vstgui.cmake b/editor/cmake/Vstgui.cmake index e853b0916..2cac1f176 100644 --- a/editor/cmake/Vstgui.cmake +++ b/editor/cmake/Vstgui.cmake @@ -208,12 +208,21 @@ if(${CMAKE_BUILD_TYPE} MATCHES "Release") target_compile_definitions(sfizz-vstgui PRIVATE "RELEASE") endif() +if(CMAKE_SYSTEM_NAME STREQUAL "Windows") + # higher C++ requirement on Windows + set_property(TARGET sfizz-vstgui PROPERTY CXX_STANDARD 14) +endif() + if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") target_compile_options(sfizz-vstgui PRIVATE "-Wno-deprecated-copy" + "-Wno-deprecated-declarations" + "-Wno-extra" "-Wno-ignored-qualifiers" + "-Wno-multichar" "-Wno-reorder" "-Wno-sign-compare" + "-Wno-unknown-pragmas" "-Wno-unused-function" "-Wno-unused-parameter" "-Wno-unused-variable")