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)