From abd8246c1bb8827d33c13a21fb9550c1345b1697 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 19 Sep 2013 17:05:20 +0200 Subject: [PATCH] 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 --- awesomeConfig.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 3839e9a3d..ae65caad6 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -54,7 +54,10 @@ a_find_program(XMLTO_EXECUTABLE xmlto FALSE) a_find_program(GZIP_EXECUTABLE gzip FALSE) # lua documentation 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 a_find_program(CONVERT_EXECUTABLE convert TRUE) # doxygen