diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2018-09-14 18:53:27 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2018-09-14 20:54:54 +0100 |
commit | f0ee8496d2ff03a9b36739ab941eb9b06b87fea1 (patch) | |
tree | 1769210f2f433131192f80e0c2308a1e9b1dacd8 /cmake/install_macros.cmake | |
parent | 6b2da933592b54616467d08313fcb1d958fc67e4 (diff) | |
download | mariadb-git-f0ee8496d2ff03a9b36739ab941eb9b06b87fea1.tar.gz |
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
Diffstat (limited to 'cmake/install_macros.cmake')
-rw-r--r-- | cmake/install_macros.cmake | 23 |
1 files changed, 7 insertions, 16 deletions
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 $<TARGET_PDB_FILE:${target}> DESTINATION symbols COMPONENT Debuginfo) + IF(comp) INSTALL(FILES $<TARGET_PDB_FILE:${target}> DESTINATION ${ARG_INSTALL_LOCATION} COMPONENT ${comp}) ENDIF() ENDFOREACH() |