From bcf5c7220703bef209510d347feb9c49982c5594 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 25 Feb 2019 08:07:44 +0100 Subject: [PATCH] CMake: generate ldoc make target always, displaying a hint --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc933c01a..71bcacb7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -315,6 +315,10 @@ if(GENERATE_DOC) generate_awesomerc generate-examples COMMENT "Generating API documentation${ldoc_desc_suffix}") +else() + add_custom_target(ldoc false + COMMENT "ldoc target not available, re-configure CMake with GENERATE_DOC=1." + VERBATIM) endif() # }}}