CMake: Add option to prefer static libmysqlclient
|Reported by:||jng||Owned by:||jng|
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.