tarantool/mysql

Unable to build mysql module when cmake 3.20+ is used

ylobankov opened this issue · 1 comments

OS: Ubuntu 20.04.

When cmake 3.20+ is installed in your system, it turns out that it's not possible to build the mysql module because the following error occurs:

CMake Error at mariadb-connector-c/cmake/ConnectorName.cmake:30 (ENDMACRO):
  Flow control statements are not properly nested.
Call Stack (most recent call first):
  mariadb-connector-c/CMakeLists.txt:391 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/home/runner/work/tarantool/tarantool/CMakeFiles/CMakeOutput.log".
See also "/home/runner/work/tarantool/tarantool/CMakeFiles/CMakeError.log".

It looks like the issue is in the mariadb-connector-c https://jira.mariadb.org/browse/CONCPP-79. So in order to fix the problem, we need to port the fix from the mentioned issue to our mariadb-connector-c fork and update the submodule version in the mysql project.

@Totktonada has already applied the fix on top of c5dfd891257f4dca3d1f6aa7645d27f6b491c6a6 (current submodule version) and created a special branch for it in our mariadb-connector-c fork. So all we need is to update the submodule version to 2e89e24d183ff292e68fe13a81cc5ba4b3140831.