diff options
author | fanquake <fanquake@gmail.com> | 2024-09-05 15:47:13 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-09-06 10:52:19 +0100 |
commit | 1f054eca4e779cfa5f9f6e9278071adf65e5eafe (patch) | |
tree | f22d410a514e77c4186d32c729a3562a54bd3738 /src | |
parent | 0e5cd608da5d8c3d9c758dbfa3fc36df4af4a100 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/qt/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d6fa21d766..4fe3793b81 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,7 +5,7 @@ include(GNUInstallDirs) include(AddWindowsResources) -configure_file(${PROJECT_SOURCE_DIR}/cmake/bitcoin-config.h.in config/bitcoin-config.h @ONLY) +configure_file(${PROJECT_SOURCE_DIR}/cmake/bitcoin-config.h.in config/bitcoin-config.h USE_SOURCE_PERMISSIONS @ONLY) include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) # TODO: After the transition from Autotools to CMake, the obj/ subdirectory diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt index 19698d75cf..297408a926 100644 --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -46,7 +46,7 @@ file(GLOB ts_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} locale/*.ts) set_source_files_properties(${ts_files} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/locale) qt5_add_translation(qm_files ${ts_files}) -configure_file(bitcoin_locale.qrc bitcoin_locale.qrc COPYONLY) +configure_file(bitcoin_locale.qrc bitcoin_locale.qrc USE_SOURCE_PERMISSIONS COPYONLY) # The bitcoinqt sources have to include headers in # order to parse them to collect translatable strings. |