Skip to content

Fix static pkg-config compile flags - #1485

Open
henriquejsza wants to merge 1 commit into
jbeder:masterfrom
henriquejsza:fix/1345-static-pkg-config-flags
Open

Fix static pkg-config compile flags#1485
henriquejsza wants to merge 1 commit into
jbeder:masterfrom
henriquejsza:fix/1345-static-pkg-config-flags

Conversation

@henriquejsza

Copy link
Copy Markdown

Summary

  • emit YAML_CPP_STATIC_DEFINE through Cflags.private for static pkg-config metadata
  • keep shared-library metadata free of the static definition
  • add a CTest regression check for both build modes

Fixes #1345

Testing

  • static and shared CMake/Ninja Release builds
  • ctest (3/3 in each build)
  • install and CMake package consumers in both modes
  • install and pkg-config consumers, including --static --cflags

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.

yaml-cpp.pc with static linking on Windows

1 participant