From 1db07f1189d6560316537ec4822d41e84f0a7105 Mon Sep 17 00:00:00 2001
From: Dan Liew <daniel.liew@imperial.ac.uk>
Date: Thu, 4 May 2017 15:29:47 +0100
Subject: [PATCH] [CMake] Remove `BYPRODUCTS` declaration for `api_docs`
 target. This breaks the `clean` rule when using Ninja as the CMake generator.
 Unfortunately this means `clean` doesn't try to remove the generated
 documentation anymore when using Ninja.

---
 contrib/cmake/doc/CMakeLists.txt | 1 -
 1 file changed, 1 deletion(-)

diff --git a/contrib/cmake/doc/CMakeLists.txt b/contrib/cmake/doc/CMakeLists.txt
index 86e208ab1..2f8ee0dc5 100644
--- a/contrib/cmake/doc/CMakeLists.txt
+++ b/contrib/cmake/doc/CMakeLists.txt
@@ -67,7 +67,6 @@ add_custom_target(api_docs ${ALWAYS_BUILD_DOCS_ARG}
   ${JAVA_API_OPTIONS}
   DEPENDS
     ${DOC_EXTRA_DEPENDS}
-  BYPRODUCTS "${DOC_DEST_DIR}"
   COMMENT "Generating documentation"
   ${ADD_CUSTOM_TARGET_USES_TERMINAL_ARG}
 )