Closed mmuetzel closed 1 week ago
It seems this change was made in this PR to enable Clang to work: https://github.com/open-source-parsers/jsoncpp/pull/1480
Maybe upstream has an idea on how to make this condition only activate for MSVC and Clang instead of every WIN32 build.
A better condition for upstream would probably be MSVC OR ("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
. But MSYS2 always targets MinGW (not MSVC). So, the second part of that condition would never be true when packaging for MSYS2.
Thank you for testing and for digging up that PR.
I created a PR for upstream with a change that should work with any compiler when targeting MSVC: https://github.com/open-source-parsers/jsoncpp/pull/1579
Fixes #22584.