summaryrefslogtreecommitdiff
path: root/rust/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'rust/CMakeLists.txt')
-rw-r--r--rust/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/CMakeLists.txt b/rust/CMakeLists.txt
index 3e2dc32f..4bc8f9ad 100644
--- a/rust/CMakeLists.txt
+++ b/rust/CMakeLists.txt
@@ -35,6 +35,7 @@ add_dependencies(rust_api binaryninjaapi)
add_custom_target(rust_docs ALL DEPENDS ${PROJECT_BINARY_DIR}/target/doc)
add_dependencies(rust_docs binaryninjaapi rust_api)
+set_property(TARGET rust_docs APPEND PROPERTY ADDITIONAL_CLEAN_FILES ${PROJECT_BINARY_DIR}/target/doc)
# Get API source directory so we can find BinaryNinjaCore
get_target_property(BN_API_SOURCE_DIR binaryninjaapi SOURCE_DIR)