File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -130,16 +130,13 @@ enable_language(C)
130130enable_language (CXX)
131131
132132if (NOT MSVC AND NOT APPLE )
133- # Linux-specific option.
134- if (FIREBASE_LINUX_USE_CXX11_ABI)
135- add_definitions (-D_GLIBCXX_USE_CXX11_ABI=1)
136- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=1" )
137- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=1" )
138- else ()
139- add_definitions (-D_GLIBCXX_USE_CXX11_ABI=0)
140- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0" )
141- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0" )
142- endif ()
133+ # The Linux Unity Editor seems to require using the CXX11 ABI for Firestore,
134+ # so we turn the option on, and set the flag to true for the C++ SDK to pick
135+ # it up as well.
136+ add_definitions (-D_GLIBCXX_USE_CXX11_ABI=1)
137+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=1" )
138+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=1" )
139+ set (FIREBASE_LINUX_USE_CXX11_ABI TRUE )
143140endif ()
144141
145142if (NOT ANDROID AND NOT IOS)
You can’t perform that action at this time.
0 commit comments