Closed 2bbb closed 3 months ago
👍
MSYS2 is already using #include <nlohmann/json.hpp> in ofJson.h
#if !defined(TARGET_MINGW)
#include <json.hpp>
#else
#include <nlohmann/json.hpp> // MSYS2 : use of system-installed include
#endif
Also, examples from nlomann site are using #include <nlohmann/json.hpp>. So, I think this is the right move.
this fix need to use apothecary...? if so, i don't know apothecary enough, please fix anyone! ☺️
Can do
https://github.com/openframeworks/apothecary/pull/429 done
Should work automatically as include location doesn't change
Nice! should this should be changed also? in ofJson.h
#if !defined(TARGET_MINGW)
#include <json.hpp>
#else
#include <nlohmann/json.hpp> // MSYS2 : use of system-installed include
#endif
Yes if someone could make the PR for that once the releases deployed to merge
On Mon, 19 Aug 2024 at 03:06, Dimitre @.***> wrote:
Nice! should this should be changed also? in ofJson.h
if !defined(TARGET_MINGW)
include
else
include <nlohmann/json.hpp> // MSYS2 : use of system-installed include
endif
— Reply to this email directly, view it on GitHub https://github.com/openframeworks/openFrameworks/issues/8082#issuecomment-2295327854, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGK2HGL25MUCXVMA4NAH2DZSDH7RAVCNFSM6AAAAABMWH42ROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVGMZDOOBVGQ . You are receiving this because you were assigned.Message ID: @.***>
Nice I think this changed exposed a few major automation test problems! XD
when other libraries has
json.hpp
,#include "json.hpp"
can't loadnlohmann::json
.i think moving
include/json.hpp
toinclude/nlohmann/json.hpp
and replace#include "json.hpp"
to#include "nlohmann/json.hpp"
or#include <nlohmann/json.hpp>
for reference:
#include <json.hpp>
works sometime. but i think this is not complete solution, maybe...