I have following command in my CMakeLists.txt
file
configure_file([...]/Version.h.in [...]/Version.h @ONLY)
How do I make it r
Just to submit an alternative answer that seems simpler to me and does the trick if you are under any *nix OS :
Running touch Version.h.in
as a pre-build command, either implemented in your IDE, manually executed before running your cmake commands in your shell, or in your CI (where it might be useless), allows to systematically generate the Version.h file, even if it has not been modified.