From f0a68d8cf1334494b1a02786d53f27dd01f96f82 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 26 Jul 2021 18:41:18 +0300 Subject: Depends: Even more build fixes --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7095173e..e7fe35a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -327,7 +327,12 @@ if (ENABLE_HARFBUZZ AND HARFBUZZ_FOUND) target_compile_definitions (app PUBLIC LAGRANGE_ENABLE_HARFBUZZ=1) endif () if (ENABLE_FRIBIDI AND FRIBIDI_FOUND) - target_link_libraries (app PUBLIC fribidi-lib) + if (TARGET fribidi-lib) + target_link_libraries (app PUBLIC fribidi-lib) + else () + target_link_libraries (app PUBLIC ${FRIBIDI_LIBRARIES}) + target_include_directories (app PUBLIC ${FRIBIDI_INCLUDE_DIRS}) + endif () target_compile_definitions (app PUBLIC LAGRANGE_ENABLE_FRIBIDI=1) endif () if (APPLE) -- cgit v1.2.3