From 086f1911698154edd4cc19dc966e966bb0060917 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 26 Jan 2022 15:34:54 +1100 Subject: CMake: include BROTLI_LIBRARIES in FREETYPE_LIBRARIES on UNIX This was already done for APPLE & WIN32, which would reference these libraries twice. Now append BROTLI_LIBRARIES to FREETYPE_LIBRARIES when they're required for linking. No functional changes as all references to FREETYPE_LIBRARIES also used BROTLI_LIBRARIES. --- build_files/cmake/platform/platform_unix.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build_files') diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake index c5a9017f025..261a794b5c8 100644 --- a/build_files/cmake/platform/platform_unix.cmake +++ b/build_files/cmake/platform/platform_unix.cmake @@ -109,6 +109,9 @@ if(NOT WITH_SYSTEM_FREETYPE) find_package_wrapper(Freetype REQUIRED) if(EXISTS ${LIBDIR}) find_package_wrapper(Brotli REQUIRED) + list(APPEND FREETYPE_LIBRARIES + ${BROTLI_LIBRARIES} + ) endif() endif() -- cgit v1.2.3