diff --git a/sqlite3_vendor/CMakeLists.txt b/sqlite3_vendor/CMakeLists.txt index 4c2b59503c..b115233b96 100644 --- a/sqlite3_vendor/CMakeLists.txt +++ b/sqlite3_vendor/CMakeLists.txt @@ -33,7 +33,10 @@ if (NOT SQLite3_FOUND) ) # The external project will install to the build folder, but we'll install that on make install. - install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/sqlite3_install/ DESTINATION ${CMAKE_INSTALL_PREFIX}) + install( + DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/sqlite3_install/ + DESTINATION ${CMAKE_INSTALL_PREFIX} + USE_SOURCE_PERMISSIONS) else () message(STATUS "Found SQLite3. Using SQLite3 from system.") endif () diff --git a/zstd_vendor/CMakeLists.txt b/zstd_vendor/CMakeLists.txt index a2eef49dd0..108f63c45c 100644 --- a/zstd_vendor/CMakeLists.txt +++ b/zstd_vendor/CMakeLists.txt @@ -48,7 +48,8 @@ macro(build_zstd) install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_install/ - DESTINATION ${CMAKE_INSTALL_PREFIX}) + DESTINATION ${CMAKE_INSTALL_PREFIX} + USE_SOURCE_PERMISSIONS) endmacro() if (NOT zstd_FOUND OR "${zstd_VERSION}" VERSION_LESS 1.4.4)