Skip to content
Snippets Groups Projects
Commit 98aa79cb authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[!751] [cmake] Make installation of PDFs from LaTeX optional

Merge branch 'fix/install-latex-doc-optional' into 'master'

ref:core/dune-common Otherwise target "install" fails when target "doc" was
not run.

Fixes [#182]

See merge request [!751]

  [#182]: gitlab.dune-project.org/NoneNone/issues/182
  [!751]: gitlab.dune-project.org/core/dune-common/merge_requests/751


Closes #182
parents 62ecb76f 8f881b41
No related branches found
No related tags found
1 merge request!751[cmake] Make installation of PDFs from LaTeX optional
Pipeline #23496 passed
......@@ -239,7 +239,9 @@ function(add_latex_document)
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} --build . --target ${LMK_TARGET} --config $<CONFIGURATION>)")
endif()
if(LMK_INSTALL)
install(FILES ${OUTPUT_PDF} DESTINATION ${LMK_INSTALL})
install(FILES ${OUTPUT_PDF}
DESTINATION ${LMK_INSTALL}
OPTIONAL)
endif()
# Add a clean up rule to the clean_latex target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment