Proper method to update templated "git-version.h.in" file #10896
-
Hi there, Thanks in advance for your help/suggestions.
meson.build
src/meson.build
src/main.cu
src/git-version.h.in
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Specify the output file as output: 'git_version.h' Meson will automatically treat that as relative to the current build directory context, which is You should also do this for the input file as well, though, because otherwise it won't find the input file. The source file defined as a list of strings can be defined instead with |
Beta Was this translation helpful? Give feedback.
Specify the output file as
Meson will automatically treat that as relative to the current build directory context, which is
src/
because it is defined insrc/meson.build
.You should also do this for the input file as well, though, because otherwise it won't find the input file.
The source file defined as a list of strings can be defined instead with
files('main.cpp')
and it will remember the directory it was defined in, but if you leave it as a plain string then it's "defined" at the time of use, which is in the root meson.build