summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/docs/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/docs/CMakeLists.txt b/clang/docs/CMakeLists.txt
index 90682f66c5d..1a86499baf8 100644
--- a/clang/docs/CMakeLists.txt
+++ b/clang/docs/CMakeLists.txt
@@ -95,8 +95,10 @@ if (LLVM_ENABLE_SPHINX)
include(AddSphinxTarget)
if (${SPHINX_OUTPUT_HTML})
add_sphinx_target(html clang)
- configure_file(LibASTMatchersReference.html
- "${CMAKE_CURRENT_BINARY_DIR}/html/LibASTMatchersReference.html" COPYONLY)
+ add_custom_command(TARGET docs-clang-html POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy
+ LibASTMatchersReference.html
+ "${CMAKE_CURRENT_BINARY_DIR}/html/LibASTMatchersReference.html")
endif()
if (${SPHINX_OUTPUT_MAN})
add_sphinx_target(man clang)
OpenPOWER on IntegriCloud