Files
cmake/Utilities/CMakeLists.txt
T
Matthew Woehlke 664eb8412a cmake: Don't use deprecated commands to build
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.
2026-07-16 12:35:23 -04:00

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()