summaryrefslogtreecommitdiff
path: root/cmake/install_macros.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-09-26 20:49:51 +0200
committerSergei Golubchik <serg@mariadb.org>2018-09-28 16:37:06 +0200
commit57e0da50bbef8164635317785b67dd468a908327 (patch)
tree89d1ed179afce8b040c8f2dfcfe179042ff27b2e /cmake/install_macros.cmake
parent7aba6f8f8853acd18d471793f8b72aa1412b8151 (diff)
parentdcbd51cee628d8d8fec9ff5476a6afc855b007aa (diff)
downloadmariadb-git-57e0da50bbef8164635317785b67dd468a908327.tar.gz
Merge branch '10.2' into 10.3
Diffstat (limited to 'cmake/install_macros.cmake')
-rw-r--r--cmake/install_macros.cmake23
1 files changed, 7 insertions, 16 deletions
diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake
index 71657e32308..da57078cfbf 100644
--- a/cmake/install_macros.cmake
+++ b/cmake/install_macros.cmake
@@ -33,26 +33,17 @@ FUNCTION (INSTALL_DEBUG_SYMBOLS)
SET(targets ${ARG_UNPARSED_ARGUMENTS})
FOREACH(target ${targets})
GET_TARGET_PROPERTY(target_type ${target} TYPE)
-
+ IF(target_type MATCHES "STATIC")
+ RETURN()
+ ENDIF()
set(comp "")
-
- IF(target MATCHES "mysqld" OR type MATCHES "MODULE")
- #MESSAGE("PDB: ${targets}")
+
+ IF((target STREQUAL "mysqld"))
SET(comp Server)
ENDIF()
-
- IF(NOT comp MATCHES Server)
- IF(ARG_COMPONENT MATCHES Development
- OR ARG_COMPONENT MATCHES SharedLibraries
- OR ARG_COMPONENT MATCHES Embedded)
- SET(comp Debuginfo)
- ENDIF()
- ENDIF()
- IF(NOT comp)
- SET(comp Debuginfo_archive_only) # not in MSI
- ENDIF()
- IF(NOT target_type MATCHES "STATIC")
+ INSTALL(FILES $<TARGET_PDB_FILE:${target}> DESTINATION symbols COMPONENT Debuginfo)
+ IF(comp)
INSTALL(FILES $<TARGET_PDB_FILE:${target}> DESTINATION ${ARG_INSTALL_LOCATION} COMPONENT ${comp})
ENDIF()
ENDFOREACH()