Lagrange [work/v1.7]

Depends: Logic for building HarfBuzz/FriBidi

=> e38df6392244d2b4b465222f0f8a0f58893a3e41

diff --git a/Depends.cmake b/Depends.cmake
index c3decd7a..aaa2e8ea 100644
--- a/Depends.cmake
+++ b/Depends.cmake
@@ -43,12 +43,13 @@ else ()
     endif ()
 endif ()
 
-if (ENABLE_HARFBUZZ AND EXISTS ${CMAKE_SOURCE_DIR}/lib/harfbuzz/CMakeLists.txt)
+if (ENABLE_HARFBUZZ)
     # Find HarfBuzz with pkg-config.
     if (NOT ENABLE_HARFBUZZ_MINIMAL AND PKG_CONFIG_FOUND)
         pkg_check_modules (HARFBUZZ IMPORTED_TARGET harfbuzz)
     endif ()
-    if (ENABLE_HARFBUZZ_MINIMAL OR NOT HARFBUZZ_FOUND)
+    if (EXISTS ${CMAKE_SOURCE_DIR}/lib/harfbuzz/CMakeLists.txt AND 
+            (ENABLE_HARFBUZZ_MINIMAL OR NOT HARFBUZZ_FOUND))            
         # Build HarfBuzz with minimal dependencies.
         if (MESON_EXECUTABLE AND NINJA_EXECUTABLE)
             set (_dst ${CMAKE_BINARY_DIR}/lib/harfbuzz)
@@ -107,12 +108,12 @@ if (ENABLE_HARFBUZZ AND EXISTS ${CMAKE_SOURCE_DIR}/lib/harfbuzz/CMakeLists.txt)
     endif ()
 endif ()
 
-if (ENABLE_FRIBIDI AND EXISTS ${CMAKE_SOURCE_DIR}/lib/fribidi)
+if (ENABLE_FRIBIDI)
     # Find FriBidi with pkg-config.
     if (NOT ENABLE_FRIBIDI_BUILD AND PKG_CONFIG_FOUND)
         pkg_check_modules (FRIBIDI IMPORTED_TARGET fribidi)
     endif ()
-    if (ENABLE_FRIBIDI_BUILD OR NOT FRIBIDI_FOUND)
+    if (EXISTS ${CMAKE_SOURCE_DIR}/lib/fribidi AND (ENABLE_FRIBIDI_BUILD OR NOT FRIBIDI_FOUND))
         # Build FriBidi with Meson.
         set (_dst ${CMAKE_BINARY_DIR}/lib/fribidi)
         if (MESON_EXECUTABLE AND NINJA_EXECUTABLE)
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.7/cdiff/e38df6392244d2b4b465222f0f8a0f58893a3e41
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
66.633438 milliseconds
Gemini-to-HTML Time
0.22783 milliseconds

This content has been proxied by September (ba2dc).