CMake: Fix invalid target when using system skia

Commit 35392d4d28 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.
This commit is contained in:
Francesco Gazzetta 2024-08-12 13:30:31 +02:00 committed by Alexander Kalenik
parent d0da377767
commit d6303c9da9
Notes: github-actions[bot] 2024-08-12 16:21:58 +00:00

View file

@ -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()