CMake/Linux: Fix Brotli library finding on standard distros.

Brotli seems to add a custom postfix to its static libraries by default,
but in Debian at least libraries are just named the same for both shared
and static versions, as usual.

So add standard name after static-specific ones.

Follow-up to rB4c617c06e9cb and rBa000de7c2a4d.
This commit is contained in:
Bastien Montagne 2022-01-25 14:31:17 +01:00
parent 0f89bcdbeb
commit 31296f6f9d
1 changed files with 4 additions and 0 deletions

View File

@ -36,7 +36,9 @@ FIND_PATH(BROTLI_INCLUDE_DIR
FIND_LIBRARY(BROTLI_LIBRARY_COMMON
NAMES
# Some builds use a special `-static` postfix in their static libraries names.
brotlicommon-static
brotlicommon
HINTS
${_BROTLI_SEARCH_DIRS}
PATH_SUFFIXES
@ -45,7 +47,9 @@ FIND_LIBRARY(BROTLI_LIBRARY_COMMON
)
FIND_LIBRARY(BROTLI_LIBRARY_DEC
NAMES
# Some builds use a special `-static` postfix in their static libraries names.
brotlidec-static
brotlidec
HINTS
${_BROTLI_SEARCH_DIRS}
PATH_SUFFIXES