Skip to content

Commit 2118c68

Browse files
Googlera-maurice
authored andcommitted
Improve error message if "libsecret" is not found,
as per similar fix in CL 247282669. PiperOrigin-RevId: 268319389
1 parent eb79a55 commit 2118c68

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,13 @@ else()
188188
src/uuid_ios_darwin.mm)
189189
else()
190190
# Linux requires libsecret.
191-
pkg_check_modules(LIBSECRET libsecret-1 REQUIRED)
191+
pkg_check_modules(LIBSECRET libsecret-1)
192+
if(NOT LIBSECRET_FOUND)
193+
message(FATAL_ERROR "Unable to find libsecret, which is needed by \
194+
Firebase. It can be installed on supported \
195+
systems via: \
196+
apt-get install libsecret-1-dev")
197+
endif()
192198
set(app_desktop_extra_SRCS
193199
src/secure/user_secure_linux_internal.cc
194200
src/locale.cc

0 commit comments

Comments
 (0)