[evolution-data-server/tintou/source-path] ObjectIntrospection.cmake: Specify the `sources-top-dirs`




commit 234ac7b62d9aae9336f7fb0e39f852daae9c8264
Author: Corentin Noël <corentin elementary io>
Date:   Wed Dec 30 00:23:22 2020 +0100

    ObjectIntrospection.cmake: Specify the `sources-top-dirs`
    
    Requires GObject Introspection >=1.59.1
    
    Fixes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/284

 cmake/modules/GObjectIntrospection.cmake | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/cmake/modules/GObjectIntrospection.cmake b/cmake/modules/GObjectIntrospection.cmake
index c9fad7e98..1b82796c3 100644
--- a/cmake/modules/GObjectIntrospection.cmake
+++ b/cmake/modules/GObjectIntrospection.cmake
@@ -138,6 +138,8 @@ macro(gir_add_introspection gir)
                                --filelist=${CMAKE_CURRENT_BINARY_DIR}/${_gir_name}_files
                                --output ${CMAKE_CURRENT_BINARY_DIR}/${gir}
                                --accept-unprefixed
+                               --sources-top-dirs=${CMAKE_SOURCE_DIR}
+                               --sources-top-dirs=${CMAKE_BINARY_DIR}
                        DEPENDS ${${${_gir_name}_FILES}}
                                ${${_gir_name}_LIBS}
                                ${${_gir_name}_DEPS}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]