diff --git a/catch/packaging/CMakeLists.txt b/catch/packaging/CMakeLists.txt index f8306248d6..67515613ce 100644 --- a/catch/packaging/CMakeLists.txt +++ b/catch/packaging/CMakeLists.txt @@ -62,7 +62,8 @@ endif() if(NOT WIN32) install(DIRECTORY ${PROJECT_BINARY_DIR}/${CATCH_BUILD_DIR} - DESTINATION ${CMAKE_INSTALL_DATADIR}/hip) + DESTINATION ${CMAKE_INSTALL_DATADIR}/hip + USE_SOURCE_PERMISSIONS) install(FILES ${PROJECT_BINARY_DIR}/CTestTestfile.cmake DESTINATION ${CMAKE_INSTALL_DATADIR}/hip) set(CPACK_GENERATOR "TGZ;DEB;RPM" CACHE STRING "Linux package types for catch tests") diff --git a/samples/packaging/CMakeLists.txt b/samples/packaging/CMakeLists.txt index 78779eb98d..fddf9ad584 100644 --- a/samples/packaging/CMakeLists.txt +++ b/samples/packaging/CMakeLists.txt @@ -65,7 +65,8 @@ endif() if(NOT WIN32) install(DIRECTORY ${SAMPLES_SRC} - DESTINATION ${CMAKE_INSTALL_DATADIR}/hip) + DESTINATION ${CMAKE_INSTALL_DATADIR}/hip + USE_SOURCE_PERMISSIONS) set(CPACK_GENERATOR "TGZ;DEB;RPM" CACHE STRING "Linux package types for hip samples") set(CPACK_BINARY_DEB "ON")