File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,26 @@ add_firebase_target(firebase_database)
7575add_firebase_target(firebase_dynamic_links)
7676add_firebase_target(firebase_functions)
7777add_firebase_target(firebase_instance_id)
78- add_firebase_target(firebase_invites)
7978add_firebase_target(firebase_messaging)
8079add_firebase_target(firebase_remote_config)
8180add_firebase_target(firebase_storage)
81+
82+ # Auth on Linux desktop has an additional dependency on libsecret,
83+ # which needs to be added. If it cannot be found, we don't want to
84+ # error, since the user might not be using auth, and the user will
85+ # get a linker error if it is needed.
86+ if (NOT APPLE AND UNIX )
87+ pkg_check_modules(LIBSECRET libsecret-1)
88+
89+ if (NOT LIBSECRET_FOUND)
90+ message (WARNING "Unable to find libsecret, which is needed by \
91+ Authentication's desktop implementation. \
92+ It can be installed on supported systems via: \
93+ apt-get install libsecret-1-dev" )
94+ else ()
95+ set_target_properties (firebase_auth PROPERTIES
96+ INTERFACE_INCLUDE_DIRECTORIES "${LIBSECRET_INCLUDE_DIRS} "
97+ INTERFACE_LINK_LIBRARIES "${LIBSECRET_LIBRARIES} "
98+ )
99+ endif ()
100+ endif ()
You can’t perform that action at this time.
0 commit comments