Skip to content

Resolve config.h.in relative to ConfigureChecks.cmake - #3837

Open
jnordstrom-iar wants to merge 1 commit into
apache:masterfrom
jnordstrom-iar:cmake-config-h-relative-path
Open

Resolve config.h.in relative to ConfigureChecks.cmake#3837
jnordstrom-iar wants to merge 1 commit into
apache:masterfrom
jnordstrom-iar:cmake-config-h-relative-path

Conversation

@jnordstrom-iar

@jnordstrom-iar jnordstrom-iar commented Sep 10, 2026

Copy link
Copy Markdown

This PR changes such that we resolve the path to config.h.in relative to CMAKE_CURRENT_LIST_DIR, instead of CMAKE_CURRENT_SOURCE_DIR. For us, this fixes an issue when ConfigureChecks.cmake is included from an out-of-project CMakeLists.txt. Note that CMAKE_CURRENT_LIST_DIR always points to build/cmake regardless of the caller, so this does not break the common use-case.

  • Did you create an Apache Jira ticket? (Request account here, not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

@mergeable mergeable Bot added the build and general CI cmake, automake and build system changes label Sep 10, 2026
@Jens-G

Jens-G commented Sep 11, 2026

Copy link
Copy Markdown
Member

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build and general CI cmake, automake and build system changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants