Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

THRIFT-5667: Make ThriftConfig.cmake relocatable #2725

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kou
Copy link
Member

@kou kou commented Nov 8, 2022

Client: cpp

The current ThriftConfig.cmake isn't relocatable. It means that we can't move ThriftConfig.cmake installed by "make install".

In general, users don't need to move ThriftConfig.cmake installed by "make install" but some packaging systems such as conda and MSYS2 needs to move. Because users of these packaging systems may use different prefix. For example, conda may be used with ~alice/my-conda and ~bob/conda as base directory.

CMake has a feature to make Config.cmake relocatable: https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html

We can use it to make ThriftConfig.cmake relocatable.

  • Did you create an Apache Jira ticket? (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.

Client: cpp

The current ThriftConfig.cmake isn't relocatable. It means that we
can't move ThriftConfig.cmake installed by "make install".

In general, users don't need to move ThriftConfig.cmake installed by
"make install" but some packaging systems such as conda and MSYS2 needs
to move. Because users of these packaging systems may use different
prefix. For example, conda may be used with ~alice/my-conda and
~bob/conda as base directory.

CMake has a feature to make Config.cmake relocatable:
https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html

We can use it to make ThriftConfig.cmake relocatable.
@kou
Copy link
Member Author

kou commented Jul 8, 2024

Could someone review this?

@Jens-G Jens-G added build and general CI cmake, automake and build system changes and removed ci labels Jul 18, 2024
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