summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan.perkin@oracle.com>2010-03-30 17:24:44 +0200
committerJonathan Perkin <jonathan.perkin@oracle.com>2010-03-30 17:24:44 +0200
commite28ea740ad5956e2d427e0e8a164a384f9c6c8bd (patch)
treeec134a6a6333628818c4e3661c13a3b31c6fedc6 /cmake
parent98e33d14fac33c0052243930ded85df255304c18 (diff)
downloadmariadb-git-e28ea740ad5956e2d427e0e8a164a384f9c6c8bd.tar.gz
Back out remains of previous attempt.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/install_macros.cmake7
1 files changed, 1 insertions, 6 deletions
diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake
index 3350373a2b6..5be9149b92f 100644
--- a/cmake/install_macros.cmake
+++ b/cmake/install_macros.cmake
@@ -183,11 +183,6 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
IF(NOT ARG_DESTINATION)
MESSAGE(FATAL_ERROR "Need DESTINATION parameter for INSTALL_DEBUG_TARGET")
ENDIF()
- IF(target_type MATCHES "EXECUTABLE")
- SET(INSTALL_TYPE TARGETS)
- ELSE()
- SET(INSTALL_TYPE FILES)
- ENDIF()
GET_TARGET_PROPERTY(target_location ${target} LOCATION)
IF(CMAKE_GENERATOR MATCHES "Makefiles")
STRING(REPLACE "${CMAKE_BINARY_DIR}" "${DEBUGBUILDDIR}" debug_target_location "${target_location}")
@@ -225,7 +220,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
GROUP_READ
WORLD_READ)
- INSTALL(${INSTALL_TYPE} ${debug_target_location}
+ INSTALL(FILES ${debug_target_location}
DESTINATION ${ARG_DESTINATION}
${RENAME_PARAM}
${PERMISSIONS_${target_type}}