In a large project, it is not uncommon to have LaTeX documents built in different subdirectories and to have each subdirectory include UseLATEX.cmake. However, loading UseLATEX.cmake multiple times caused the pdf, dvi, etc. targets to be created multiple times even though the intention is to have them loaded once. This change creates each target only once.
9 lines
542 B
Text
9 lines
542 B
Text
This tests appropriate behavior when a project (or multi-project) tries to
|
|
create multiple documents with multiple add_latex_document calls. It also
|
|
creates them in separate subdirectories, with each subdirectory
|
|
independently loading UseLATEX.cmake. This is typical in a large project
|
|
that might bring in several subprojects.
|
|
|
|
When running this project, two documents should be built. You should not
|
|
get errors or warnings about a target being defined multiple times. You
|
|
should be able to build using the pdf, dvi, ps, and safepdf targets.
|