Skip to content

Commit

Permalink
Fixes for MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Aug 31, 2020
1 parent a71c754 commit d91bec7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions editor/cmake/Vstgui.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d91bec7

Please sign in to comment.