Merge branch 'tc/meson-use-our-version-def-h'

The meson build procedure looked for the 'version-def.h' file in a
wrong directory, which has been corrected.

* tc/meson-use-our-version-def-h:
  meson: ensure correct version-def.h is used
This commit is contained in:
Junio C Hamano
2025-01-23 15:07:01 -08:00
2 changed files with 9 additions and 2 deletions

View File

@ -1513,7 +1513,9 @@ libgit_version_library = static_library('git-version',
'version.c',
version_def_h,
],
c_args: libgit_c_args,
c_args: libgit_c_args + [
'-DGIT_VERSION_H="' + version_def_h.full_path() + '"',
],
dependencies: libgit_dependencies,
include_directories: libgit_include_directories,
)