mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Avoid use of deprecated commands when building CMake itself. Fortunately, the only instance thereof was a use of `subdirs`, which is replaced by `add_subdirectory` since so long ago that the latter is already used everywhere else, so there is no danger of this newly requiring a newer version of CMake to build CMake itself.
24 lines
702 B
CMake
24 lines
702 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
# file LICENSE.rst or https://cmake.org/licensing for details.
|
|
|
|
add_subdirectory(Doxygen)
|
|
|
|
if (CMake_DOC_ARTIFACT_PREFIX)
|
|
# Undocumented option for CI usage to reuse already
|
|
# built documentation.
|
|
install(DIRECTORY ${CMake_DOC_ARTIFACT_PREFIX}/
|
|
DESTINATION ${CMake_INSTALL_APP_DIR} USE_SOURCE_PERMISSIONS)
|
|
else()
|
|
# Normal documentation build.
|
|
add_subdirectory(Sphinx)
|
|
endif()
|
|
|
|
if(CMake_BUILD_WIX_CUSTOM_ACTION)
|
|
add_subdirectory(Release/WiX)
|
|
endif()
|
|
|
|
if(CMake_RUN_CLANG_TIDY)
|
|
# Make sure generated files use the same clang-tidy checks (none).
|
|
configure_file(.clang-tidy .clang-tidy COPYONLY)
|
|
endif()
|