mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-01-26 11:04:33 +00:00
Instead of mutating `CMAKE_INSTALL_PREFIX`, add a `CMake.app/Contents/` prefix to install destinations besides the `cmake-gui` target itself.
24 lines
693 B
CMake
24 lines
693 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
# file LICENSE.rst 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 ${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()
|