Skip to content

Commit 1cab40e

Browse files
committed
Fix Windows packaging
1 parent 79cdda3 commit 1cab40e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

cmake/DepFindMySQL.cmake

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,21 @@ function(bundle_dependencies)
486486
file(GLOB_RECURSE depepdency_path
487487
"${MYSQL_PLUGIN_DIR}/*${lib_name}*"
488488
"${MYSQL_LIB_DIR}/*${lib_name}*"
489-
"${MYSQL_LIB_DIR}/private/*${lib_name}*"
490489
)
491490

492491
if(depepdency_path)
493492
message("DEPENDENCY_PATH: ${depepdency_path}")
494-
install(FILES ${depepdency_path}
495-
DESTINATION "${INSTALL_LIB_DIR}/private"
496-
COMPONENT ClientDlls
497-
)
493+
if(WIN32)
494+
install(FILES ${depepdency_path}
495+
DESTINATION "${INSTALL_LIB_DIR}/plugin"
496+
COMPONENT ClientDlls
497+
)
498+
else()
499+
install(FILES ${depepdency_path}
500+
DESTINATION "${INSTALL_LIB_DIR}/private"
501+
COMPONENT ClientDlls
502+
)
503+
endif()
498504

499505
endif()
500506
unset(depepdency_path CACHE)

0 commit comments

Comments
 (0)