From d6303c9da955de4646d93fd4f85734f8e8160a87 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Mon, 12 Aug 2024 13:30:31 +0200 Subject: [PATCH] CMake: Fix invalid target when using system skia Commit 35392d4d28bd129ae936bdf470e7d58807a4b10c moved the target_*_directories() calls (or rather their include()) before the target declaration, so they fail because of the undefined target. We can fix the problem by using global *_directories() instead. --- Meta/CMake/skia.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/CMake/skia.cmake b/Meta/CMake/skia.cmake index 0c7763aa7f2..81ea7732813 100644 --- a/Meta/CMake/skia.cmake +++ b/Meta/CMake/skia.cmake @@ -17,6 +17,6 @@ else() endforeach() pkg_check_modules(SKIA skia=${SKIA_REQUIRED_VERSION} REQUIRED) - target_include_directories(LibWeb PRIVATE ${SKIA_INCLUDE_DIRS}) - target_link_directories(LibWeb PRIVATE ${SKIA_LIBRARY_DIRS}) + include_directories(${SKIA_INCLUDE_DIRS}) + link_directories(${SKIA_LIBRARY_DIRS}) endif()