OpenBluetoothToolbox / SimpleBLE

SimpleBLE - the all-in-one Bluetooth library for MacOS, iOS, Windows, Linux and Android.
https://www.simpleble.org
Other
660 stars 111 forks source link

try to add fmt only if not already added #210

Closed gv-me closed 1 year ago

gv-me commented 1 year ago

if fmt already has been added with add_subdirectory() call, any attempt to add again will cause errors.

If the parent project is already using fmt, and now tries to use simpleble with the Usage with CMake (Vendorized) or Usage with CMake (Local) method, cmake configure will show errors since all the fmt targets have already been created.

Checking if the targets are already present will prevent this.

kdewald commented 1 year ago

Nice one, thanks!