Skip to content

Commit 6e6b60f

Browse files
committed
Experimental ABI fix to deal with '__cxx11' (take 2)
1 parent b7dd86e commit 6e6b60f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ if (APPLE)
4545
set(EXTENSION "mm")
4646
set(JUCE_PLATFORM_SPECIFIC_DIR build/macosx/platform_specific_code)
4747
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")
48+
49+
# Prevent compiling with __cxx11
50+
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
4851
endif()
4952

5053
################ IMAGE MAGICK ##################

tests/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ if(WIN32)
3636
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -include cmath")
3737
endif()
3838

39+
if (APPLE)
40+
# Prevent compiling with __cxx11
41+
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
42+
endif()
43+
3944
################### UNITTEST++ #####################
4045
# Find UnitTest++ libraries (used for unit testing)
4146
find_package(UnitTest++)

0 commit comments

Comments
 (0)