summaryrefslogtreecommitdiff
path: root/cmake/install_macros.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-02-16 16:06:57 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-02-16 16:06:57 +0100
commitf68e8aa8602026922bad641f17a901bf5908d069 (patch)
tree7c36e5a5a382639f885c367f980bd3ff5ca59854 /cmake/install_macros.cmake
parent900317e6bd1fa3935a537275efa8059c5e883122 (diff)
downloadmariadb-git-f68e8aa8602026922bad641f17a901bf5908d069.tar.gz
Fix a couple fo things replated to MSI
Diffstat (limited to 'cmake/install_macros.cmake')
-rw-r--r--cmake/install_macros.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake
index 5b20c1966be..26e0d9581ac 100644
--- a/cmake/install_macros.cmake
+++ b/cmake/install_macros.cmake
@@ -35,7 +35,12 @@ MACRO (INSTALL_DEBUG_SYMBOLS targets)
IF(CMAKE_GENERATOR MATCHES "Visual Studio")
STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}" pdb_location ${pdb_location})
ENDIF()
- INSTALL(FILES ${pdb_location} DESTINATION ${INSTALL_LOCATION})
+ IF(target STREQUAL "mysqld")
+ SET(comp Server)
+ ELSE()
+ SET(comp Debuginfo)
+ ENDIF()
+ INSTALL(FILES ${pdb_location} DESTINATION ${INSTALL_LOCATION} COMPONENT ${comp})
ENDFOREACH()
ENDIF()
ENDMACRO()