Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit b975072

Browse files
author
jan.kneschke@oracle.com
committed
install the .pdb's of a .dll too
1 parent a9783d7 commit b975072

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cmake/ChassisPlugin.cmake

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@ MACRO(CHASSIS_PLUGIN_INSTALL _plugin_name)
66
INSTALL(TARGETS ${_plugin_name}
77
DESTINATION lib/mysql-proxy/plugins)
88
ELSE(NOT WIN32)
9-
## on win32 the lua module gets prefixed with lua- and end up in bin/
10-
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/${CMAKE_SHARED_LIBRARY_PREFIX}${_plugin_name}${CMAKE_SHARED_LIBRARY_SUFFIX}
9+
## on win32 the chassis plugins gets prefixed with plugin- and end up in bin/
10+
GET_TARGET_PROPERTY(built_location ${_plugin_name} LOCATION)
11+
INSTALL(FILES ${built_location}
1112
DESTINATION bin/
1213
RENAME plugin-${_plugin_name}${CMAKE_SHARED_LIBRARY_SUFFIX}
1314
)
15+
## install the .pdb too
16+
IF(CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo")
17+
STRING(REPLACE ${CMAKE_SHARED_LIBRARY_PREFIX} ".pdb" pdb_location ${built_location})
18+
INSTALL(FILES
19+
${pdb_location}
20+
DESTINATION bin
21+
)
22+
ENDIF()
1423
ENDIF(NOT WIN32)
1524
ENDMACRO(CHASSIS_PLUGIN_INSTALL _plugin_name)
1625

0 commit comments

Comments
 (0)