Commit 9f54ae51 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix CMake code to work with older cmake version, such as 2.6.2

parent b34cfe93
...@@ -40,17 +40,23 @@ FUNCTION (INSTALL_DEBUG_SYMBOLS) ...@@ -40,17 +40,23 @@ FUNCTION (INSTALL_DEBUG_SYMBOLS)
IF(CMAKE_GENERATOR MATCHES "Visual Studio") IF(CMAKE_GENERATOR MATCHES "Visual Studio")
STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}" pdb_location ${pdb_location}) STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}" pdb_location ${pdb_location})
ENDIF() ENDIF()
IF(ARG_COMPONENT STREQUAL "Server" AND (target MATCHES "mysqld" OR type MATCHES "MODULE")) IF(ARG_COMPONENT STREQUAL "Server")
#MESSAGE("PDB: ${targets}") IF(target MATCHES "mysqld" OR type MATCHES "MODULE")
SET(comp Server) #MESSAGE("PDB: ${targets}")
ELSEIF(ARG_COMPONENT MATCHES Development SET(comp Server)
OR ARG_COMPONENT MATCHES SharedLibraries ENDIF()
OR ARG_COMPONENT MATCHES Embedded) ENDIF()
IF(NOT comp MATCHES Server)
IF(ARG_COMPONENT MATCHES Development
OR ARG_COMPONENT MATCHES SharedLibraries
OR ARG_COMPONENT MATCHES Embedded)
SET(comp Debuginfo)
ELSE()
SET(comp Debuginfo_archive_only) # not in MSI
ENDIF()
ENDIF()
SET(comp Debuginfo)
ELSE()
SET(comp Debuginfo_archive_only) # not in MSI
ENDIF()
INSTALL(FILES ${pdb_location} DESTINATION ${ARG_INSTALL_LOCATION} COMPONENT ${comp}) INSTALL(FILES ${pdb_location} DESTINATION ${ARG_INSTALL_LOCATION} COMPONENT ${comp})
ENDFOREACH() ENDFOREACH()
ENDIF() ENDIF()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment