Skip to content

Commit 2cf7f7d

Browse files
committed
CMake: return back _GLIBCXX_USE_CXX11_ABI definition
1 parent 6adc9e7 commit 2cf7f7d

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

cmake/platform/linux.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
1919
-g3 -ggdb
2020
)
2121
endif()
22+
23+
set(PLATFORM_COMPILE_DEFINITIONS
24+
${PLATFORM_COMPILE_DEFINITIONS}
25+
26+
_GLIBCXX_USE_CXX11_ABI=0
27+
)

cmake/platform/macos.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
1818
-g3 -ggdb
1919
)
2020
endif()
21+
22+
23+
set(PLATFORM_COMPILE_DEFINITIONS
24+
${PLATFORM_COMPILE_DEFINITIONS}
25+
26+
_GLIBCXX_USE_CXX11_ABI=0
27+
)

0 commit comments

Comments
 (0)