[MXS-82] cmake warns when mariadb is compiled without mysql_release Created: 2015-04-01  Updated: 2015-06-17  Resolved: 2015-04-30

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: 1.1.1

Type: Bug Priority: Trivial
Reporter: Yuval Hager Assignee: Massimiliano Pinto (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

When maridb is built without specifying BUILD_CONFIG=mysql_release the compilation comment in mysql_version.h is not set to be MariaDB Server. It stays with the default Source distribution (set in mariadb:cmake/mysql_version.cmake).

MaxScale's cmake checks the compilation comment in cmake/FindMySQL.cmake and spews a warning:

-- MySQL version: 10.0.17
-- MySQL provider: Unknown
CMake Warning at cmake/FindMySQL.cmake:33 (message):
  Not using MariaDB server.
Call Stack (most recent call first):
  CMakeLists.txt:28 (find_package)

I think the build then continues successfully, but this warning is quite confusing.



 Comments   
Comment by markus makela [ 2015-04-30 ]

Added a more descriptive warning. It now specifically states that a release version of MariaDB is not being used and if intentional, the warning should be ignored.

Comment by Timofey Turenko [ 2015-05-12 ]

bug is connected to non-standard MariaDB/MySQL builds (not from mariadb.org). Checked manually: cmake shows warnings; Maxscale docs suggest to use MariaDB from mariadb.org.

Generated at Thu Feb 08 03:56:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.