Hi! and thanks for reporting.
I am in the process of packaging doxygen 1.9.4 and this issue seems to
be fixed in that version.
To test, I did this twice:
cd `mktemp -d`
git clone https://github.com/BYVoid/OpenCC
cd OpenCC/
cd doc
# no need to run cmake etc. just quickly generate the Doxyfile ...
cp opencc.doxy.in Doxyfile
sed -i 's/@CMAKE_SOURCE_DIR@/../g' Doxyfile
sed -i 's/@OPENCC_VERSION/1.1.4/g' Doxyfile
doxygen -u
doxygen
the compared the dirs:
kdiff3 html/ ../../../tmp.bcQZ8jaXXy/OpenCC/doc/html
While with 1.9.1 I get:
<a class="anchor" id="md__tmp_tmp_iUTnuMRUEg_OpenCC_README"></a>
with 1.9.4 I get:
<a class="anchor" id="md__src_README"></a>
so the build path is not embedded anymore.
If you have time to test yourself, you can try with this package here on
unstable:
https://salsa.debian.org/debian/doxygen/-/jobs/3001759/artifacts/browse/debian/output/
Paolo