From f0ee8496d2ff03a9b36739ab941eb9b06b87fea1 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Fri, 14 Sep 2018 18:53:27 +0100 Subject: MDEV-15088 Lighter version of Windows Zip distributions Add new target win_package, that produces a) light ZIP (no test suite, no sql-bench, no debugsymbols) b) debug symbols ZIP --- cmake/install_macros.cmake | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'cmake/install_macros.cmake') diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake index d9d12371830..ece6df350db 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 $ DESTINATION symbols COMPONENT Debuginfo) + IF(comp) INSTALL(FILES $ DESTINATION ${ARG_INSTALL_LOCATION} COMPONENT ${comp}) ENDIF() ENDFOREACH() -- cgit v1.2.1