Skip to content

Commit eb79a55

Browse files
markchandlera-maurice
authored andcommitted
Firebase Cpp open source: Fixed bad define for libuWS
PiperOrigin-RevId: 268315315
1 parent bc72768 commit eb79a55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ if (NOT ANDROID AND NOT IOS)
135135
add_external_library(zlib)
136136

137137
add_external_library(uWebSockets)
138+
139+
set(websockets_additional_defines "")
140+
138141
# uWebSockets does not come with a CMakeLists file, so define the target.
139142
# Note that since it depends on OpenSSL, only do so if that was found.
140143
if (OPENSSL_FOUND)
@@ -161,7 +164,7 @@ if (NOT ANDROID AND NOT IOS)
161164
# default, as it can cause issues when libraries try
162165
# to include winsock2.h later on in the process.
163166
-DUSE_LIBUV=1
164-
)
167+
)
165168
elseif(APPLE)
166169
set(websockets_additional_defines
167170
-DUSE_LIBUV=1
@@ -170,7 +173,7 @@ if (NOT ANDROID AND NOT IOS)
170173

171174
target_compile_definitions(libuWS
172175
PRIVATE
173-
"${websockets_additional_defines}"
176+
${websockets_additional_defines}
174177
)
175178
target_include_directories(libuWS
176179
PUBLIC

0 commit comments

Comments
 (0)