Commit 736f2eae authored by Jonathan Perkin's avatar Jonathan Perkin

Try to fix the debug permissions stuff.

parent 0f6794a9
...@@ -175,6 +175,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target) ...@@ -175,6 +175,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
${ARGN} ${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) IF(ARG_RENAME)
SET(RENAME_PARAM RENAME ${ARG_RENAME}${CMAKE_${target_type}_SUFFIX}) SET(RENAME_PARAM RENAME ${ARG_RENAME}${CMAKE_${target_type}_SUFFIX})
ELSE() ELSE()
...@@ -193,6 +194,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target) ...@@ -193,6 +194,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
INSTALL(FILES ${debug_target_location} INSTALL(FILES ${debug_target_location}
DESTINATION ${ARG_DESTINATION} DESTINATION ${ARG_DESTINATION}
${RENAME_PARAM} ${RENAME_PARAM}
PERMISSIONS ${target_permissions}
CONFIGURATIONS Release RelWithDebInfo CONFIGURATIONS Release RelWithDebInfo
OPTIONAL) OPTIONAL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment