387d7a
--- poppler-21.01.0/glib/CMakeLists.txt
387d7a
+++ poppler-21.01.0/glib/CMakeLists.txt
387d7a
@@ -121,7 +121,7 @@ if (HAVE_INTROSPECTION AND BUILD_SHARED_
387d7a
 
387d7a
   # General gir: Reset object-list for introspection & load tool args
387d7a
   set(INTROSPECTION_GIRS)
387d7a
-  set(INTROSPECTION_SCANNER_ARGS "--add-include-path=${CMAKE_CURRENT_SOURCE_DIR}" "--warn-all")
387d7a
+  set(INTROSPECTION_SCANNER_ARGS "--add-include-path=${CMAKE_CURRENT_SOURCE_DIR}" "--warn-all" "--sources-top-dirs=${CMAKE_SOURCE_DIR}" "--sources-top-dirs=${CMAKE_BINARY_DIR}")
387d7a
   set(INTROSPECTION_COMPILER_ARGS "--includedir=${CMAKE_CURRENT_SOURCE_DIR}")
387d7a
 
387d7a
   # Poppler: Assign package to gir & export keys