CMake: Look for both "ldoc" and "ldoc.lua"

At least debian uses "ldoc" for the binary name instead of "ldoc.lua" while
upstream seems to prefer the later...

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2013-09-19 17:05:20 +02:00
parent aaa771f887
commit abd8246c1b
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@ a_find_program(XMLTO_EXECUTABLE xmlto FALSE)
a_find_program(GZIP_EXECUTABLE gzip FALSE) a_find_program(GZIP_EXECUTABLE gzip FALSE)
# lua documentation # lua documentation
a_find_program(LUA_EXECUTABLE lua FALSE) a_find_program(LUA_EXECUTABLE lua FALSE)
a_find_program(LDOC_EXECUTABLE ldoc.lua FALSE) a_find_program(LDOC_EXECUTABLE ldoc FALSE)
if(NOT LDOC_EXECUTABLE)
a_find_program(LDOC_EXECUTABLE ldoc.lua FALSE)
endif()
# theme graphics # theme graphics
a_find_program(CONVERT_EXECUTABLE convert TRUE) a_find_program(CONVERT_EXECUTABLE convert TRUE)
# doxygen # doxygen