cpp-lazy icon indicating copy to clipboard operation
cpp-lazy copied to clipboard

can version 8.0.0 be used without fmt?

Open jcar87 opened this issue 1 year ago • 2 comments

When configuring the project with CPP-LAZY_USE_STANDALONE set to True - it appears that fmt is still unconditionally required

  • In the cpp-lazyConfig.cmake file https://github.com/Kaaserne/cpp-lazy/blob/master/cmake/cpp-lazyConfig.cmake#L2 - this should probably be conditional?
  • even when LZ_STANDALONE is 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_EXPORT not being defined causes that conditional branch)

jcar87 avatar Apr 16 '25 13:04 jcar87

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

ICreateYank avatar Apr 16 '25 14:04 ICreateYank

Fix in https://github.com/Kaaserne/cpp-lazy/commit/f43e44a5d7976afb59e98bbd7a9e047df5f0d4b4

ICreateYank avatar Apr 16 '25 15:04 ICreateYank