Skip to content

Commit

Permalink
Merge pull request #25 from floriansimon1/bugfix/apple-m1-builds
Browse files Browse the repository at this point in the history
Force the compiler language version on Mac to C++14
  • Loading branch information
sauraen authored Apr 23, 2022
2 parents ce9ff2b + 16bbd76 commit 8f8d8c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ add_executable(seq64_console
"juce/modules/juce_audio_basics/juce_audio_basics.cpp"
"juce/modules/juce_data_structures/juce_data_structures.cpp"
)
if(APPLE)
set_target_properties(seq64_console PROPERTIES CXX_STANDARD 14 CXX_STANDARD_REQUIRED TRUE CXX_EXTENSIONS FALSE)
endif()
target_include_directories(seq64_console PRIVATE
"Source"
"juce/modules"
Expand All @@ -104,6 +107,9 @@ if(SEQ64_BUILD_GUI)
juce_add_gui_app(seq64_gui PRODUCT_NAME "seq64_gui" COMPANY_NAME "Sauraen")
juce_generate_juce_header(seq64_gui)
target_sources(seq64_gui PRIVATE ${SEQ64_SHARED_SOURCES} ${SEQ64_GUI_ONLY_SOURCES})
if(APPLE)
set_target_properties(seq64_gui PROPERTIES CXX_STANDARD 14 CXX_STANDARD_REQUIRED TRUE CXX_EXTENSIONS FALSE)
endif()
target_compile_definitions(seq64_gui PRIVATE
JUCE_STANDALONE_APPLICATION=1
JUCE_WEB_BROWSER=0
Expand Down

0 comments on commit 8f8d8c6

Please sign in to comment.