doc: set MIN_WEST_VERSION to 1.0.0
If west is installed, we have to build the Zephyr documentation with a recent version of west. This is because the west API documentation is part of the Zephyr documentation, and the west API documentation contains Sphinx autodoc directives which pull API documentation out of the west source code itself. This is similar to how we pull Doxygen comments out of the Zephyr API headers using breathe. (If west is not installed, we don't build the west API docs, so you can uninstall west if you don't want this.) The current API docs require west v1.0.0 or later to build, since that version of west introduced new APIs and documentation for them not available in prior versions. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
0a1a5f8ab8
commit
523de0d9be
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
cmake_minimum_required(VERSION 3.20.0)
|
||||
project(Zephyr-Kernel-Doc LANGUAGES)
|
||||
|
||||
set(MIN_WEST_VERSION 1.0.0)
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} .. COMPONENTS doc)
|
||||
|
||||
file(TO_CMAKE_PATH "${ZEPHYR_BASE}" ZEPHYR_BASE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue