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

Try to fix the debug permissions stuff.

parent 0f6794a9
......@@ -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)
......
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