1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Windows build fix:

The msi installer package didn't contain all plugins
This commit is contained in:
Georg Richter
2018-04-23 03:47:07 +02:00
parent f46244c8fe
commit 89e27e9828
4 changed files with 12 additions and 15 deletions

View File

@@ -61,9 +61,8 @@ FUNCTION(REGISTER_PLUGIN)
${CC_BINARY_DIR}/win/${target}.rc
@ONLY)
set(CC_PLUGIN_SOURCES ${CC_PLUGIN_SOURCES} ${CC_BINARY_DIR}/win/${target}.rc ${CC_SOURCE_DIR}/plugins/plugin.def)
MESSAGE(STATUS "PLugin sources: ${CC_PLUGIN_SOURCES}")
endif()
add_library(${CC_PLUGIN_TARGET} MODULE ${CC_PLUGIN_SOURCES})
add_library(${CC_PLUGIN_TARGET} SHARED ${CC_PLUGIN_SOURCES})
target_link_libraries(${CC_PLUGIN_TARGET} ${CC_PLUGIN_LIBRARIES})
set_target_properties(${CC_PLUGIN_TARGET} PROPERTIES PREFIX "")
set_target_properties(${CC_PLUGIN_TARGET} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CC_BINARY_DIR}/plugins/lib")