You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be very handy if the library exposed a NLOHMANN_JSON_VERSION macro for easy version detection in configure scripts, cmake files, etc. Especially since the fancy formatting in the comment header makes text extraction harder.
The text was updated successfully, but these errors were encountered:
@nlohmann Yeah, that'd probably do. I never would've thought to look for it there. But a configure test / CMake Find module etc could compile a trivial program to print the version based on that, assuming it's not cross-compiling.
For now I landed up with a hideous regexp based hack to match the version from the comment header.
Hi folks
It'd be very handy if the library exposed a NLOHMANN_JSON_VERSION macro for easy version detection in configure scripts, cmake files, etc. Especially since the fancy formatting in the comment header makes text extraction harder.
The text was updated successfully, but these errors were encountered: