[1mdiff --git a/CMakeLists.txt b/CMakeLists.txt[m
[1mindex c5d5f610..7095173e 100644[m
[1m--- a/CMakeLists.txt[m
[1m+++ b/CMakeLists.txt[m
[36m@@ -275,6 +275,7 @@[m [mendif ()[m
[m
add_executable (app ${SOURCES} ${RESOURCES})[m
[32m+[m[32madd_dependencies (app ext-deps)[m
set_target_properties (app PROPERTIES OUTPUT_NAME lagrange)[m
target_include_directories (app PUBLIC[m
src[m
[1mdiff --git a/Depends.cmake b/Depends.cmake[m
[1mindex 174d5eb6..657f90aa 100644[m
[1m--- a/Depends.cmake[m
[1m+++ b/Depends.cmake[m
[36m@@ -8,6 +8,8 @@[m [mfind_program (MESON_EXECUTABLE meson DOC "Meson build system")[m
find_program (NINJA_EXECUTABLE ninja DOC "Ninja build tool")[m
include (ExternalProject)[m
[m
[32m+[m[32mset (_dependsToBuild)[m
[32m+[m
if (ENABLE_HARFBUZZ AND EXISTS ${CMAKE_SOURCE_DIR}/lib/harfbuzz/CMakeLists.txt)[m
# Find HarfBuzz with pkg-config.[m
if (NOT ENABLE_HARFBUZZ_MINIMAL AND PKG_CONFIG_FOUND)[m
[36m@@ -30,10 +32,9 @@[m [mif (ENABLE_HARFBUZZ AND EXISTS ${CMAKE_SOURCE_DIR}/lib/harfbuzz/CMakeLists.txt)[m
--prefix ${_dst}[m
BUILD_COMMAND ${NINJA_EXECUTABLE}[m
INSTALL_COMMAND ${NINJA_EXECUTABLE} install[m
[31m- STEP_TARGETS install[m
)[m
[32m+[m[32m list (APPEND _dependsToBuild harfbuzz-ext)[m
add_library (harfbuzz-lib INTERFACE)[m
[31m- add_dependencies (harfbuzz-lib harfbuzz-ext-install harfbuzz-ext)[m
target_include_directories (harfbuzz-lib INTERFACE ${_dst}/include/harfbuzz)[m
if (MSYS)[m
# Link dynamically.[m
[36m@@ -97,21 +98,22 @@[m [mif (ENABLE_FRIBIDI AND EXISTS ${CMAKE_SOURCE_DIR}/lib/fribidi)[m
--prefix ${_dst}[m
BUILD_COMMAND ${NINJA_EXECUTABLE}[m
INSTALL_COMMAND ${NINJA_EXECUTABLE} install[m
[31m- STEP_TARGETS install[m
BUILD_BYPRODUCTS ${_dst}/lib/libfribidi.a[m
)[m
[32m+[m[32m list (APPEND _dependsToBuild fribidi-ext)[m
else ()[m
message (FATAL_ERROR[m
"GNU FriBidi must be built with Meson. Please install Meson and Ninja and try again, or provide FriBidi via pkg-config.")[m
endif ()[m
add_library (fribidi-lib INTERFACE)[m
[31m- add_dependencies (fribidi-lib fribidi-ext-install fribidi-ext)[m
target_include_directories (fribidi-lib INTERFACE ${_dst}/include)[m
target_link_libraries (fribidi-lib INTERFACE ${_dst}/lib/libfribidi.a)[m
set (FRIBIDI_FOUND YES)[m
endif ()[m
endif ()[m
[m
[32m+[m[32madd_custom_target (ext-deps DEPENDS ${_dependsToBuild})[m
[32m+[m
if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation/CMakeLists.txt)[m
set (INSTALL_THE_FOUNDATION YES)[m
find_package (the_Foundation REQUIRED)[m
text/plain
This content has been proxied by September (ba2dc).