File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#
22# Build the documentation
33#
4- # CMake's Documentation.cmake was deprecated in CMake 3.18 via CMP0106 and
5- # removed entirely in CMake 4.0. Use the bundled module on older CMake
6- # (preserving any auxiliary behavior it provides on era-original toolchains)
7- # and inline the BUILD_DOCUMENTATION option on CMake >= 4.0 where the file
8- # no longer ships.
9- if (CMAKE_VERSION VERSION_LESS 4.0)
10- include (${CMAKE_ROOT} /Modules/Documentation.cmake )
11- else ()
12- option (BUILD_DOCUMENTATION "Build the documentation (Doxygen)." OFF )
13- endif ()
4+ # CMake's Documentation.cmake (the source of BUILD_DOCUMENTATION on legacy
5+ # toolchains) is deprecated under CMP0106 since CMake 3.18 and removed in
6+ # CMake 4.0. Define the option directly; no auxiliary variable from that
7+ # module is referenced in this tree.
8+ option (BUILD_DOCUMENTATION "Build the documentation (Doxygen)." OFF )
149
1510mark_as_advanced (BUILD_DOCUMENTATION )
1611
You can’t perform that action at this time.
0 commit comments