diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2022-01-25 18:18:53 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2022-01-25 18:18:59 +0300 |
commit | 0477ca75f0853cda7a6c4d70f812712ae64115df (patch) | |
tree | be881972e05c788f45ed050781a36badb9e212b5 /build_files | |
parent | 14f6afb09003903a25872e6b05c67411db5e5267 (diff) |
CMake/Linux: only link to brotli when using static precompiled libraries
The Brotli library only needs to be explicitly linked when using the
statically linked libraries. When using system libs they're shared, and
the .so loading mechanism takes care of dependencies.
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/platform/platform_unix.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake index 593f3b7043c..5778699ee49 100644 --- a/build_files/cmake/platform/platform_unix.cmake +++ b/build_files/cmake/platform/platform_unix.cmake @@ -103,7 +103,9 @@ find_package_wrapper(Zstd REQUIRED) # FreeType compiled with Brotli compression for woff2. find_package_wrapper(Freetype REQUIRED) -find_package_wrapper(Brotli REQUIRED) +if(EXISTS ${LIBDIR}) + find_package_wrapper(Brotli REQUIRED) +endif() if(WITH_PYTHON) # No way to set py35, remove for now. |