ampl / mp

An open-source library for mathematical programming
https://mp.ampl.com
Other
229 stars 42 forks source link

How to deal with vendored fmt library when packaging? #131

Open traversaro opened 3 years ago

traversaro commented 3 years ago

This repo contains an old (version 3.1.0, the latest version is 7.1.2) vendored copy of fmt. While the header should not create any conflict, as they are installed in mp/format.h instead of fmt/format.h, the symbols of the embedded fmt library are not put in a different namespace, so they could create conflicts when the ampl-mp library is used in the same process that also links with the latest fmt library.

Possible strategies to deal with this are:

Note that both of this options would break the ABI of the library.