[Fdo-trac] [fdo-trac] #975: CMake: Add option to prefer static libmysqlclient

FDO trac_fdo at osgeo.org
Tue Sep 1 05:02:56 PDT 2020


#975: CMake: Add option to prefer static libmysqlclient
----------------------------+----------------------
   Reporter:  jng           |      Owner:  jng
       Type:  task          |     Status:  assigned
   Priority:  major         |  Milestone:
  Component:  Build System  |    Version:
   Severity:  3             |   Keywords:
External ID:                |
----------------------------+----------------------
 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.

-- 
Ticket URL: <https://trac.osgeo.org/fdo/ticket/975>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list