1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-09-11 08:50:45 +03:00
Files
Sergei Golubchik d31b669995 fix C API includes
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
2022-11-02 18:47:44 +01:00

26 lines
624 B
CMake

include_directories( ${ENGINE_COMMON_INCLUDES} ${S3API_DIR} )
########### next target ###############
set(cpimport_SRCS
we_splitterapp.cpp
we_cmdargs.cpp
we_sdhandler.cpp
we_respreadthread.cpp
we_filereadthread.cpp
we_splclient.cpp
we_brmupdater.cpp
we_tablelockgrabber.cpp
we_xmlgetter.cpp)
add_executable(cpimport ${cpimport_SRCS})
add_dependencies(cpimport loggingcpp)
target_link_libraries(cpimport ${ENGINE_LDFLAGS} ${NETSNMP_LIBRARIES} ${ENGINE_WRITE_LIBS} batchloader threadpool marias3)
install(TARGETS cpimport DESTINATION ${ENGINE_BINDIR} COMPONENT columnstore-engine)