A custom parser for detecting "set sql_mode=ORACLE" is needed and writing that is C++ is more convenient than writing it in C. Consequently, so as to be able to use that parser, mysql_client must be compiled as C++.
5 lines
207 B
CMake
5 lines
207 B
CMake
add_library(MySQLClient SHARED mysql_client.cc)
|
|
target_link_libraries(MySQLClient maxscale-common MySQLCommon)
|
|
set_target_properties(MySQLClient PROPERTIES VERSION "1.0.0")
|
|
install_module(MySQLClient core)
|