From 7742c5cb9a3136ddaee7162e671675e3ac57057c Mon Sep 17 00:00:00 2001 From: brettcoon Date: Tue, 26 Mar 2024 14:58:54 -0700 Subject: [PATCH] Add a sanity check to the new menu code. Fail if both the new inline-navigation and the old page_user_docs menu modifications are triggered. --- api/docs/CMake_rundoxygen.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/docs/CMake_rundoxygen.cmake b/api/docs/CMake_rundoxygen.cmake index aac589f152b..3dc5905372b 100644 --- a/api/docs/CMake_rundoxygen.cmake +++ b/api/docs/CMake_rundoxygen.cmake @@ -348,6 +348,9 @@ if (embeddable) if (js MATCHES "page_user_docs.js") # CMake 3.6+ guarantees the glob is sorted lexicographically, so we've already # seen navtreedata.js. + if (found_user_docs) + message(FATAL_ERROR "Found unexpected \"page_user_docs\" menu file") + endif () set(found_user_docs ON) if (ext_entry) if (NOT string MATCHES "Disassembly Library")