File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -130,16 +130,13 @@ enable_language(C)
130
130
enable_language (CXX)
131
131
132
132
if (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 )
143
140
endif ()
144
141
145
142
if (NOT ANDROID AND NOT IOS)
You can’t perform that action at this time.
0 commit comments