From 6ac8f30d62413758c1b0e9bc6813d2987650563c Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 12 Oct 2018 14:01:11 -0400 Subject: [PATCH] build: Add more dependencies to the ldoc target Right now it was possible to modify `rc.lua` without the doc being aware of it. --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9285124c6..789ff98ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -289,7 +289,12 @@ if(GENERATE_DOC) file(COPY ${SOURCE_DIR}/docs/ldoc.css DESTINATION ${BUILD_DIR}/docs) add_custom_target(ldoc ALL - DEPENDS ${BUILD_DIR}/doc/index.html ${BUILD_DIR}/docs/ldoc.css) + DEPENDS + ${BUILD_DIR}/doc/index.html + ${BUILD_DIR}/docs/ldoc.css + generate_awesomerc + ) + if (STRICT_TESTS) set(ldoc_args --fatalwarnings .) set(ldoc_desc_suffix " (fatal warnings)")