Using PackageCompiler Header file time modified even content not changed using force

Currently the build command

create_library(".", "MyLib";
    lib_name="libmine",
    precompile_execution_file="build/generate_precompile.jl",
    precompile_statements_file="build/additional_precompile.jl",
    header_files=["build/mylib.h"], force=true, filter_stdlibs=true,
    incremental=true)

have to recreate the header files. And in the Cpp project that uses the header, I have to recompile the cpp project everytime I recompile the julia project. Is there a way to keep the c interface header files untouched if not changed anything in the interface so that the cpp project doesn’ t needs recompiling just a relinking? Do I have to copy the interface headers everytime there’ s a change?

For the C/C++ part, C++ compilers with the right toolchain usually do not recompile (it’s been a few years though since I’ve used them) if the header has not changed, and even if the compiler checks by timestamp, and not content, then tools suchs as ccache can drastically reduce recompile times. https://ccache.dev/
If that does not work, you can add a hook to your build system that only recompiles if the md5/sha hash of that header has changed, or even use a symlink that only gets updated if the hash changes?