Skip to content

Commit

Permalink
build: Added warning if we try to BUILD_DOC and there's no pdflatex
Browse files Browse the repository at this point in the history
azonenberg committed May 21, 2017
1 parent b906131 commit 1f6ac71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -59,6 +59,9 @@ find_program(PDFLATEX pdflatex)
if(DEFINED BUILD_DOC AND NOT BUILD_DOC)
message(STATUS "BUILD_DOC turned off, documentation will not be built")
set(BUILD_DOC OFF)
elseif(DEFINED BUILD_DOC AND BUILD_DOC AND NOT PDFLATEX)
message(WARNING "BUILD_DOC turned on but no pdflatex found, documentation will not be built")
set(BUILD_DOC OFF)
elseif(NOT DEFINED BUILD_DOC AND NOT PDFLATEX)
message(STATUS "pdflatex not found, documentation will not be built")
set(BUILD_DOC OFF)

0 comments on commit 1f6ac71

Please sign in to comment.