cpp-lazy
cpp-lazy copied to clipboard
can version 8.0.0 be used without fmt?
When configuring the project with CPP-LAZY_USE_STANDALONE set to True - it appears that fmt is still unconditionally required
- In the
cpp-lazyConfig.cmakefile https://github.com/Kaaserne/cpp-lazy/blob/master/cmake/cpp-lazyConfig.cmake#L2 - this should probably be conditional? - even when
LZ_STANDALONEis defined at the compiler levels, consumers are still including the fmt headers https://github.com/Kaaserne/cpp-lazy/blob/v8.0.0/include/Lz/detail/LzTools.hpp#L96-L99 (LZ_MODULE_EXPORTnot being defined causes that conditional branch)
That looks like a problem indeed. I think I can make a patch for this in the pre-release of 8.0.1 (https://github.com/Kaaserne/cpp-lazy/releases/tag/v8.0.1) and cherry-pick this to 9.0.0 which is currently under heavy maintenance
Fix in https://github.com/Kaaserne/cpp-lazy/commit/f43e44a5d7976afb59e98bbd7a9e047df5f0d4b4