From 618119c69902f9e53cf464346525eea8b7eeebaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20P=C3=BCschel?= Date: Fri, 14 Mar 2025 12:48:35 +0100 Subject: [PATCH] don't include buildpaths in the generated GLib2 source files Don't include build paths in the generated GLib2 source files, as potential source packages generated after build may include all files used for the compilation. With GLib2 adding the full source path to the generated file, the source package may not be reproducible. Therefore remove glib2 including the source path in the generated file. --- cmake/FindGLib2.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindGLib2.cmake b/cmake/FindGLib2.cmake index bc892f78..93a2f948 100644 --- a/cmake/FindGLib2.cmake +++ b/cmake/FindGLib2.cmake @@ -45,10 +45,10 @@ function(GLib2_ADD_MARSHAL _sources _marshallist) endif() add_custom_command(OUTPUT "${_header}" - COMMAND ${GLib2_GENMARHSAL_EXECUTABLE} --header ${_params} ${_infile} > ${_header} + COMMAND ${GLib2_GENMARHSAL_EXECUTABLE} --skip-source --header ${_params} ${_infile} > ${_header} DEPENDS ${_infile} VERBATIM) add_custom_command(OUTPUT "${_body}" - COMMAND ${GLib2_GENMARHSAL_EXECUTABLE} --body ${_params} ${_infile} > ${_body} + COMMAND ${GLib2_GENMARHSAL_EXECUTABLE} --skip-source --body ${_params} ${_infile} > ${_body} DEPENDS ${_infile} VERBATIM) set_property(SOURCE ${_body} ${_header} PROPERTY SKIP_AUTOMOC ON)