summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-03-18 11:49:15 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-03-18 11:49:15 +0100
commit8e7f5ea6e8e4c44dd265450912a4c20a61503bfe (patch)
tree4105be8f75c1bc2d6a6cc61599f9010974c66be3 /doc/it
parent352c0408d8cd7ff2859c898e96db57701fc84e6d (diff)
downloadweechat-8e7f5ea6e8e4c44dd265450912a4c20a61503bfe.zip
core: fix build with CMake and Ninja
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/it/CMakeLists.txt b/doc/it/CMakeLists.txt
index 0274c1104..eeff86a1f 100644
--- a/doc/it/CMakeLists.txt
+++ b/doc/it/CMakeLists.txt
@@ -48,6 +48,9 @@ endif()
if(ENABLE_DOC)
+ file(GLOB AUTOGEN_USER "${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.adoc")
+ file(GLOB AUTOGEN_PLUGIN "${CMAKE_CURRENT_SOURCE_DIR}/autogen/plugin/*.adoc")
+
# user's guide
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html
@@ -56,7 +59,7 @@ if(ENABLE_DOC)
${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.adoc
${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.adoc
- ${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.adoc
+ ${AUTOGEN_USER}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat_user.it.html"
)
@@ -70,7 +73,7 @@ if(ENABLE_DOC)
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.it.adoc
- ${CMAKE_CURRENT_SOURCE_DIR}/autogen/plugin_api/*.adoc
+ ${AUTOGEN_PLUGIN}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat_plugin_api.it.html"
)