From faa63afb8db43690fa633fe1673be9331d278e24 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 7 Oct 2023 11:05:03 +0800 Subject: Try to unify meson projects. So deps will be well organized. --- src/platform/graphics/cairo/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/platform/graphics/cairo/CMakeLists.txt b/src/platform/graphics/cairo/CMakeLists.txt index 73b18499..48339f7c 100644 --- a/src/platform/graphics/cairo/CMakeLists.txt +++ b/src/platform/graphics/cairo/CMakeLists.txt @@ -35,7 +35,7 @@ if (UNIX AND NOT EMSCRIPTEN) # It's so great to see emscripten is somewhat UNIX! endif() if (EMSCRIPTEN) - add_dependencies(CruPlatformGraphicsCairo cairo-build) - target_link_libraries(CruPlatformGraphicsCairo PUBLIC CruPlatformGraphics PUBLIC ${CAIRO_INSTALL_DIR}/lib/libcairo.a) - target_include_directories(CruPlatformGraphicsCairo PUBLIC ${CAIRO_INSTALL_DIR}/include) + add_dependencies(CruPlatformGraphicsCairo build-meson-projects) + target_link_libraries(CruPlatformGraphicsCairo PUBLIC CruPlatformGraphics PUBLIC ${MESON_PROJECTS_INSTALL_DIR}/lib/libcairo.a) + target_include_directories(CruPlatformGraphicsCairo PUBLIC ${MESON_PROJECTS_INSTALL_DIR}/include) endif() -- cgit v1.2.3