You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
ColumnStore used to include server's mysql.h but link all tools with libmariadb.so There's no guarantee that this would work, even with workarounds it had in dbcon/mysql/sm.cpp Fix: * tools (linked with libmariadb.so) *must* include libmariadb's mysql.h * as a hack prevent service_thd_timezone.h from being loaded into tools, as it conflicts with libmariadb's mysql.h * server plugin *must* include server's mysql.h * also don't link every tool with libmariadb.so, link the helper library (liblibmysqlclient.so) that actually needs it, tools use this helper library, not libmariadb.so directly
29 lines
776 B
CMake
29 lines
776 B
CMake
|
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|
|
|
|
|
########### next target ###############
|
|
|
|
set(WriteEngineServer_SRCS
|
|
we_server.cpp
|
|
we_readthread.cpp
|
|
we_ddlcommandproc.cpp
|
|
we_observer.cpp
|
|
we_dataloader.cpp
|
|
we_brmrprtparser.cpp
|
|
we_dmlcommandproc.cpp
|
|
we_cleartablelockcmd.cpp
|
|
we_cpifeederthread.cpp
|
|
we_getfilesizes.cpp
|
|
../../utils/common/crashtrace.cpp
|
|
../../datatypes/mcs_datatype.cpp)
|
|
|
|
add_executable(WriteEngineServer ${WriteEngineServer_SRCS})
|
|
|
|
add_dependencies(WriteEngineServer loggingcpp)
|
|
|
|
target_link_libraries(WriteEngineServer ${ENGINE_LDFLAGS} ${NETSNMP_LIBRARIES} ${ENGINE_WRITE_LIBS} threadpool writeengineredistribute)
|
|
|
|
install(TARGETS WriteEngineServer DESTINATION ${ENGINE_BINDIR} COMPONENT columnstore-engine)
|
|
|