From c6f5825a480dee5c4badcf49e34af118d5a47aa8 Mon Sep 17 00:00:00 2001 From: David G Yu Date: Wed, 13 Sep 2023 13:39:36 -0700 Subject: [PATCH] Fixed doc build errors when using ninja The generated search.html file needs special handling. --- documentation/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt index d82240df..f8b59e9b 100644 --- a/documentation/CMakeLists.txt +++ b/documentation/CMakeLists.txt @@ -269,7 +269,10 @@ if (DOCUTILS_FOUND AND Python_Interpreter_FOUND) -E copy "${infile}" "${outfile}" ) - add_custom_target( ${src} DEPENDS "${outfile}") + # Exclude generated search.html + if (NOT ${src} STREQUAL "search.html") + add_custom_target( ${src} DEPENDS "${outfile}") + endif() list(APPEND HTML_TARGETS ${src})