Skip to content

Commit da89530

Browse files
committed
cmake: make sure that PDBs are installed into debug/ sub-folder if building in debug mode.
1 parent 36eb57e commit da89530

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,21 @@ install(TARGETS connector-jdbc
270270
LIBRARY DESTINATION "${INSTALL_LIB_DIR}" COMPONENT JDBCDll
271271
)
272272

273+
273274
if(MSVC AND NOT BUILD_STATIC)
275+
274276
install(FILES $<TARGET_PDB_FILE:connector-jdbc>
275-
CONFIGURATIONS Debug RelWithDebInfo
277+
CONFIGURATIONS RelWithDebInfo
276278
DESTINATION "${INSTALL_LIB_DIR}"
277279
COMPONENT Debuginfo
278280
)
281+
282+
install(FILES $<TARGET_PDB_FILE:connector-jdbc>
283+
CONFIGURATIONS Debug
284+
DESTINATION "${INSTALL_LIB_DIR}/debug"
285+
COMPONENT Debuginfo
286+
)
287+
279288
endif()
280289

281290
# Install some MySQL specific headers

0 commit comments

Comments
 (0)