From 8e7f5ea6e8e4c44dd265450912a4c20a61503bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 18 Mar 2018 11:49:15 +0100 Subject: core: fix build with CMake and Ninja --- doc/it/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc/it') 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" ) -- cgit v1.2.3