
Since commit 00cfea965b
(gitattributes: Do not export lint config files
in source archives, 2025-01-24, v4.0.0-rc1~129^2) the `.clang-tidy`
config file is not available in source archives. Require it only when
the `CMake_RUN_CLANG_TIDY` option is turned on, which we only do in
development and CI builds.
Fixes: #26712
24 lines
672 B
CMake
24 lines
672 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
subdirs(Doxygen)
|
|
|
|
if (CMake_DOC_ARTIFACT_PREFIX)
|
|
# Undocumented option for CI usage to reuse already
|
|
# built documentation.
|
|
install(DIRECTORY ${CMake_DOC_ARTIFACT_PREFIX}/
|
|
DESTINATION . 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()
|