Skip to content

build: install the public headers under iceberg/catalog - #927

Open
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:fix-install-catalog-headers
Open

build: install the public headers under iceberg/catalog#927
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:fix-install-catalog-headers

Conversation

@plusplusjiajia

Copy link
Copy Markdown
Member

rest_catalog.h is installed and includes iceberg/catalog/session_catalog.h, which is not — so a downstream project consuming the installed package and using the REST catalog fails to compile:

fatal error: iceberg/catalog/session_catalog.h: No such file or directory

The three headers under src/iceberg/catalog (session_catalog.h, session_context.h, catalog_util.h) are already installed by the Meson build, and every sibling directory in CMake (data, expression, manifest, …) calls iceberg_install_all_headers. Only src/iceberg/catalog/CMakeLists.txt was missing the call
— another instance of #894.

Verified by installing from main and building a downstream find_package(iceberg CONFIG REQUIRED COMPONENTS bundle rest) project that includes rest_catalog.h: it fails before this change and builds after.

rest_catalog.h is installed and includes iceberg/catalog/session_catalog.h,
but the CMake build never installs the headers directly under
src/iceberg/catalog, so any downstream project that consumes the installed
package and uses the REST catalog fails to compile:

  fatal error: iceberg/catalog/session_catalog.h: No such file or directory

The Meson build already installs these three headers; only CMake is missing
them, and every sibling directory (data, expression, manifest, ...) calls
iceberg_install_all_headers.
@plusplusjiajia
plusplusjiajia marked this pull request as ready for review September 8, 2026 10:38
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.

1 participant