From 8409639d4d57b1181cde373eaa659626858db5e7 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 6 Nov 2016 01:24:25 +0100 Subject: [PATCH] Blacklist broken LDoc versions (#1207) Fixes: https://github.com/awesomeWM/awesome/issues/1098 Signed-off-by: Uli Schlachter --- awesomeConfig.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 65ccb8805..0dade3bb0 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -42,6 +42,14 @@ a_find_program(LDOC_EXECUTABLE ldoc FALSE) if(NOT LDOC_EXECUTABLE) a_find_program(LDOC_EXECUTABLE ldoc.lua FALSE) endif() +if(LDOC_EXECUTABLE) + execute_process(COMMAND sh -c "${LDOC_EXECUTABLE} --sadly-ldoc-has-no-version-option 2>&1 | grep ' vs 1.4.5'" + OUTPUT_VARIABLE LDOC_VERSION_RESULT) + if(NOT LDOC_VERSION_RESULT STREQUAL "") + message(WARNING "Ignoring LDoc, because version 1.4.5 is known to be broken") + unset(LDOC_EXECUTABLE CACHE) + endif() +endif() # theme graphics a_find_program(CONVERT_EXECUTABLE convert TRUE) # pkg-config