Skip to content

Commit

Permalink
Experimental ABI fix to deal with '__cxx11' (take 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Jul 6, 2020
1 parent b7dd86e commit 6e6b60f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -45,6 +45,9 @@ if (APPLE)
set(EXTENSION "mm")
set(JUCE_PLATFORM_SPECIFIC_DIR build/macosx/platform_specific_code)
set(JUCE_PLATFORM_SPECIFIC_LIBRARIES "-framework Carbon -framework Cocoa -framework CoreFoundation -framework CoreAudio -framework CoreMidi -framework IOKit -framework AGL -framework AudioToolbox -framework QuartzCore -lobjc -framework Accelerate")

# Prevent compiling with __cxx11
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
endif()

################ IMAGE MAGICK ##################
Expand Down
5 changes: 5 additions & 0 deletions tests/CMakeLists.txt
Expand Up @@ -36,6 +36,11 @@ if(WIN32)
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -include cmath")
endif()

if (APPLE)
# Prevent compiling with __cxx11
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
endif()

################### UNITTEST++ #####################
# Find UnitTest++ libraries (used for unit testing)
find_package(UnitTest++)
Expand Down

0 comments on commit 6e6b60f

Please sign in to comment.