summaryrefslogtreecommitdiff
path: root/cmake/install_macros.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-03-22 20:21:14 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2012-03-22 20:21:14 +0100
commit02d982a90b830ce373bae91c6113afc65e2a970e (patch)
tree4b4a9054a2a4e51accd69a8180fb117603b92e77 /cmake/install_macros.cmake
parent526de8478ae4f095d9f9484329d3fb993caf18a8 (diff)
downloadmariadb-git-02d982a90b830ce373bae91c6113afc65e2a970e.tar.gz
Fix Windows build
Diffstat (limited to 'cmake/install_macros.cmake')
-rw-r--r--cmake/install_macros.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake
index 1b0028977f2..da22ec818f8 100644
--- a/cmake/install_macros.cmake
+++ b/cmake/install_macros.cmake
@@ -40,6 +40,8 @@ FUNCTION (INSTALL_DEBUG_SYMBOLS)
IF(CMAKE_GENERATOR MATCHES "Visual Studio")
STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}" pdb_location ${pdb_location})
ENDIF()
+
+ set(comp "")
IF(ARG_COMPONENT STREQUAL "Server")
IF(target MATCHES "mysqld" OR type MATCHES "MODULE")
#MESSAGE("PDB: ${targets}")
@@ -52,11 +54,12 @@ FUNCTION (INSTALL_DEBUG_SYMBOLS)
OR ARG_COMPONENT MATCHES SharedLibraries
OR ARG_COMPONENT MATCHES Embedded)
SET(comp Debuginfo)
- ELSE()
- SET(comp Debuginfo_archive_only) # not in MSI
- ENDIF()
+ ENDIF()
ENDIF()
+ IF(NOT comp)
+ SET(comp Debuginfo_archive_only) # not in MSI
+ ENDIF()
INSTALL(FILES ${pdb_location} DESTINATION ${ARG_INSTALL_LOCATION} COMPONENT ${comp})
ENDFOREACH()
ENDIF()