← Back to team overview

maria-developers team mailing list archive

Re: To Sergei:

 

Hi, Samarth!

On May 24, Samarth Mathur wrote:
> I put the <plugin>.c file and the CmakeLists.txt in a folder on my desktop
> and ran
> *cmake .*
> 
> CMake Warning (dev) in CMakeLists.txt:
>   No cmake_minimum_required command is present.  A line of code such as
> 
>     cmake_minimum_required(VERSION 2.8)
> 
>   should be added at the top of the file.  The version specified may be
> lower
>   if you wish to support older CMake versions for this project.  For more
>   information run "cmake --help-policy CMP0000".
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> then i ran
> *cmake . -Wno-dev*
> 
> CMake Error at CMakeLists.txt:1 (MYSQL_ADD_PLUGIN):
>   Unknown CMake command "MYSQL_ADD_PLUGIN".

You need to do that from the MariaDB source tree. Put your plugin in the
plugin/ directory, where other plugins are.

Regards,
Sergei


References