--- gr-0.73.17/cmake/GenPreviewImages.cmake.orig	2025-08-30 21:21:11.741872600 +0200
+++ gr-0.73.17/cmake/GenPreviewImages.cmake	2025-08-30 21:21:17.571446800 +0200
@@ -724,7 +724,7 @@
            ${GR_FILL_STYLE_IMAGES}
     COMMAND "${CMAKE_COMMAND}" -E env GKS_FONTPATH="${CMAKE_CURRENT_LIST_DIR}/../lib/gks"
             ${GR_GEN_PREVIEW_IMAGES_EXECUTABLE}
-    DEPENDS ${GR_GEN_PREVIEW_IMAGES_EXECUTABLE}
+    DEPENDS ${GR_GEN_PREVIEW_IMAGES_EXECUTABLE} cairoplugin
   )
 else()
   add_custom_command(
