I am generating doxygen documentation for my (fairly small) project on each build. I did the following to accomplish this:
index.html
, which doxygen generates, to the projectdoxygen ../doc/Doxyfile
..doc/html/index.html
The problem with this is, that I need to build twice until VS stops telling me that my project is out of date.
How can I fix this?
When working out whether to build anything, Visual Studio looks to see if the output file is older than the input file.
You added index.html as an input file, when it's actually an output file. Adding Doxyfile won't work either, because it won't change that often. This is why rebuilding the project works (because it ignores the age of the files and does the build anyway).
It's changes in the C++ files that you want to catch. If (as I suspect) doxygen does incremental builds anyway, you'd be better off simply adding the doxygen step as a Post-build event.