Skip to content

Commit

Permalink
meson: depend on version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
carrotIndustries committed Feb 7, 2024
1 parent a2911a4 commit 6b03908
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,10 @@ help_texts = custom_target(

fs = import('fs')
has_git_dir = fs.is_dir('.git')
version_deps = ['version.py']
if has_git_dir
message('including git commit')
version_deps = ['.git/HEAD', '.git/index']
else
version_deps = []
version_deps += ['.git/HEAD', '.git/index']
endif

version_gen_cpp = custom_target(
Expand Down

0 comments on commit 6b03908

Please sign in to comment.