Opened 4 years ago

Closed 4 years ago

#975 closed task (fixed)

CMake: Add option to prefer static libmysqlclient

Reported by: jng Owned by: jng
Priority: major Milestone:
Component: Build System Version:
Severity: 3 Keywords:
Cc: External ID:

Description

I'm trying to build the MySQL FDO provider on CentOS against a binary MySQL Connector/C SDK (because the system-provided version is too old). Doing this however will complicate downstream dependency computation:

  • We can't say that these binaries require mysql (the system-provided version would be too old)
  • It is difficult to "bundle" the libmysqlclient .so files detected by FindMySQL.cmake (how would we know if this was custom or system-provided)

The simplest option here, is to prefer static libmysqlclient, which our find module currently doesn't do.

Change History (1)

comment:1 by jng, 4 years ago

Resolution: fixed
Status: assignedclosed

In 7996:

Add CMake flag to prefer static libmysqlclient. Fixes #975

Note: See TracTickets for help on using tickets.