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

The content of CMakeLists.txt file is :

MYSQL_ADD_PLUGIN(rewrite_example MODULE_ONLY MODULE_OUTPUT_NAME “rewrite_example”)

Is something missing in CMakeLists.txt file ?

Why macro MYSQL_ADD_PLUGIN is ignored by cmake?