Skip to content
Snippets Groups Projects
Commit 3b897d3c authored by Markus Blatt's avatar Markus Blatt
Browse files

Only call LateX if it is usable.

[[Imported from SVN: r7403]]
parent 186f5b37
No related branches found
No related tags found
No related merge requests found
......@@ -85,8 +85,12 @@ MACRO(dune_add_latex_document tex_file)
find_file(filevar ${tex_file} ${CMAKE_CURRENT_SOURCE_DIR})
message(filevar=${filevar} tex_file=${tex_file} CMAKE_CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR})
if(filevar)
# add rule to create latex document
add_latex_document(${tex_file} ${ARGN})
if(LATEX_USABLE)
# add rule to create latex document
add_latex_document(${tex_file} ${ARGN})
else(LATEX_USABLE)
message(WARNING "Not adding rule to create ${file} as LaTEX is not usable!")
endif(LATEX_USABLE)
else(filevar)
# Check for the pdf file
set(pdffilevar "pdffilevar-NOTFOUND")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment