Skip to content

Commit 1f6ac71

Browse files
committedMay 21, 2017
build: Added warning if we try to BUILD_DOC and there's no pdflatex
1 parent b906131 commit 1f6ac71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ find_program(PDFLATEX pdflatex)
5959
if(DEFINED BUILD_DOC AND NOT BUILD_DOC)
6060
message(STATUS "BUILD_DOC turned off, documentation will not be built")
6161
set(BUILD_DOC OFF)
62+
elseif(DEFINED BUILD_DOC AND BUILD_DOC AND NOT PDFLATEX)
63+
message(WARNING "BUILD_DOC turned on but no pdflatex found, documentation will not be built")
64+
set(BUILD_DOC OFF)
6265
elseif(NOT DEFINED BUILD_DOC AND NOT PDFLATEX)
6366
message(STATUS "pdflatex not found, documentation will not be built")
6467
set(BUILD_DOC OFF)

0 commit comments

Comments
 (0)