Add check for fmt version in TensorUtils.hpp
Context
Added a version check for the fmt library to include the appropriate header file: fmt/core.h for versions older than 10.0.0 and fmt/base.h for versions 10.0.0 and later.
It solves issue #255 (moved).
Modified files
-
aidge_core/include/aidge/utils/TensorUtils.hpp, added if-block to check fmt version;
Explanation
The fmt library defines FMT_VERSION as an integer in the format MmmPP (Major, Minor, Patch).
For example:
-
FMT_VERSION 90100→ fmt 9.1.0 -
FMT_VERSION 100200→ fmt 10.2.0