cmake: add USE_SOURCE_PERMISSIONS to all configure_file usage

`USE_SOURCE_PERMISSIONS` is the default, so this should not change
behaviour. However, being explicit makes it clear what we are doing.

Related to #30815.

See
https://cmake.org/cmake/help/latest/command/configure_file.html#options.
This commit is contained in:
fanquake
2024-09-05 15:47:13 +01:00
parent 0e5cd608da
commit 1f054eca4e
7 changed files with 11 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ find_package(Doxygen COMPONENTS dot)
if(DOXYGEN_FOUND)
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(Doxyfile.in ${doxyfile})
configure_file(Doxyfile.in ${doxyfile} USE_SOURCE_PERMISSIONS)
# In CMake 3.27, The FindDoxygen module's doxygen_add_docs()
# command gained a CONFIG_FILE option to specify a custom doxygen