[cmake-developers] Which binaries should be required in FindLATEX?

Brad King brad.king at kitware.com
Fri Dec 5 13:55:34 EST 2014


Hi Christoph,

Thanks for working on this.

On 12/05/2014 02:35 AM, Christoph Grüninger wrote:
> For users it would be great to simply have all these binaries.

I don't have all the converters installed but can still build PDF books.
The varying tools do not all come in the same package on Linux distros.

Of course most projects will want most or all of the tools.  For this
I think the FindLATEX module should implement support for the find_package
COMPONENTS option.  Then projects can specify what they need:

  find_package(LATEX COMPONENTS latex pdflatex bibtex ...)

and the module will compute the proper LATEX_FOUND value based on the
availability of all the requested components.

> If this is still to restrictive, I propose to only test for the LaTeX
> compiler and let the user check for the other binaries (with
> if(MAKEINDEX_COMPILER) )

With proper component support I think that proposal makes sense.
If no components are listed then LATEX_FOUND should be based only
on LATEX_COMPILER.  If components are listed then all of them
must be found.

Of course this approach can be implemented first to get FPHSA working
and component support added later.  Any components listed would just
be added to the list given to the REQUIRED_VARS option of FPHSA.

> In any case, I'll have to clarify this in the documentation for my next
> patch.

In the next revision please also add your name to the author field
instead of the Github user id.

Thanks,
-Brad



More information about the cmake-developers mailing list