summaryrefslogtreecommitdiff
path: root/cmake/install_macros.cmake
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan.perkin@oracle.com>2010-03-30 12:32:38 +0200
committerJonathan Perkin <jonathan.perkin@oracle.com>2010-03-30 12:32:38 +0200
commit736f2eae74c1d316f089d09b4b8a38b37c337bb9 (patch)
tree4639a96f30052bff9f6f251435fdd1ba54da3b9f /cmake/install_macros.cmake
parent0f6794a9d8e955c5529ffe2108af1f966cbc60f2 (diff)
downloadmariadb-git-736f2eae74c1d316f089d09b4b8a38b37c337bb9.tar.gz
Try to fix the debug permissions stuff.
Diffstat (limited to 'cmake/install_macros.cmake')
-rw-r--r--cmake/install_macros.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake
index 1dcf8b5ca21..a070c316bf2 100644
--- a/cmake/install_macros.cmake
+++ b/cmake/install_macros.cmake
@@ -174,7 +174,8 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
""
${ARGN}
)
- GET_TARGET_PROPERTY(target_type ${target} TYPE)
+ GET_TARGET_PROPERTY(target_type ${target} TYPE)
+ GET_TARGET_PROPERTY(target_permissions ${target} PERMISSIONS)
IF(ARG_RENAME)
SET(RENAME_PARAM RENAME ${ARG_RENAME}${CMAKE_${target_type}_SUFFIX})
ELSE()
@@ -193,6 +194,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
INSTALL(FILES ${debug_target_location}
DESTINATION ${ARG_DESTINATION}
${RENAME_PARAM}
+ PERMISSIONS ${target_permissions}
CONFIGURATIONS Release RelWithDebInfo
OPTIONAL)