Not the answer you need?
Register and ask your own question!

MYSQL_ADD_PLUGIN macro

stofa.kenidastofa.kenida ContributorCurrent User Role Novice
Hi There,

I'am trying to compile a plugin in 5.7 version.
By running cmake . under the directory where the plugin source code file is located ( MYSQL_TREE/plugin/rewrite_example/ ) the following error is returned :

CMake Error at CMakeLists.txt:15 (MYSQL_ADD_PLUGIN):
Unknown CMake command "MYSQL_ADD_PLUGIN".

The server version used : Percona 5.7.25-28

Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

My cmake version is : cmake version 2.8.12.2

The content of CMakeLists.txt file is :

MYSQL_ADD_PLUGIN(rewrite_example rewrite_example.cc MODULE_ONLY MODULE_OUTPUT_NAME "rewrite_example")

Is something missing in CMakeLists.txt file ?

Why macro MYSQL_ADD_PLUGIN is ignored by cmake?

Thanks

Stofa.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.