Skip to content

fix(cmake): record avro-cpp as system dependency in installed config - #987

Merged
wgtmac merged 1 commit into
apache:mainfrom
rohanjain101:fix-avro-cpp-system-dependency
Oct 9, 2026
Merged

wgtmac merged 1 commit into
apache:mainfrom
rohanjain101:fix-avro-cpp-system-dependency

Conversation

@rohanjain101

Copy link
Copy Markdown
Contributor

Fixes #973.

When built against a system Avro, resolve_avro_dependency() appended Avro to ICEBERG_SYSTEM_DEPENDENCIES, so the installed iceberg-config.cmake called find_dependency(Avro). The package actually found is avro-cpp (exporting avro-cpp::avrocpp_*), so consumers' find_package(iceberg CONFIG) failed. This records the real package name.

The installed iceberg-config.cmake called find_dependency(Avro), but the package found is avro-cpp, which does not provide an Avro package. Closes apache#973
@wgtmac

wgtmac commented Oct 9, 2026

Copy link
Copy Markdown
Member

Thank you, @rohanjain101!

BTW, I saw you are maintaining the vcpkg port of iceberg-cpp. Do you want to eliminate all patches there by directly fixing them in this repo?

@wgtmac
wgtmac merged commit fa29f66 into apache:main Oct 9, 2026
14 checks passed
@rohanjain101

Copy link
Copy Markdown
Contributor Author

Thank you, @rohanjain101!

BTW, I saw you are maintaining the vcpkg port of iceberg-cpp. Do you want to eliminate all patches there by directly fixing them in this repo?

Yes! Please see #972 and #986

@rohanjain101
rohanjain101 deleted the fix-avro-cpp-system-dependency branch October 9, 2026 02:30
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.

Installed iceberg-config.cmake calls find_dependency(Avro) instead of avro-cpp

2 participants