Skip to content

Conversation

mmuetzel
Copy link
Collaborator

Fixes #22584.

Copy link
Contributor

@sharkwouter sharkwouter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix I needed, thanks!

@sharkwouter
Copy link
Contributor

It seems this change was made in this PR to enable Clang to work: open-source-parsers/jsoncpp#1480

Maybe upstream has an idea on how to make this condition only activate for MSVC and Clang instead of every WIN32 build.

@mmuetzel
Copy link
Collaborator Author

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.

@mmuetzel mmuetzel merged commit 216395b into msys2:master Nov 19, 2024
8 checks passed
@mmuetzel
Copy link
Collaborator Author

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: open-source-parsers/jsoncpp#1579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jsoncpp pkgconfig file reports wrong libs for static builds since 1.9.6 update
2 participants