blitz icon indicating copy to clipboard operation
blitz copied to clipboard

doc-generation option in CMake

Open slayoo opened this issue 6 years ago • 1 comments

Not sure if this is what we need. To be clear, here is how these things SHOULD work: There should be a CMake option (looks like DOCS) that turns on generation of documentation. If that option is not set, then no docs are generated. If the option IS set, then docs will be generated. If the option is set and the required programs for generating docs do not exist (pdflatex and texi2pdf), then CMake should generate an error. It should NOT "automagically" decide whether or not to generate docs depending on whether it can find the required programs. That will cause people unending grief ("I set DOCS but docs weren't generated"), and is against best practices.

Originally posted by @citibeth in https://github.com/blitzpp/blitz/pull/97

slayoo avatar May 06 '19 15:05 slayoo

I understand this is what needs to done to generate the docs with blitz version 1.0.2: mkdir build cd build cmake .. -DBUILD_DOC=ON make blitz-doc

It lets doxygen run a lot of thing, but latex aborts due to errors, so there is no pdf. Did I do anything wrong? Thanks!

WalterZimmer314 avatar Mar 04 '20 14:03 WalterZimmer314