-
Notifications
You must be signed in to change notification settings - Fork 909
cmake: Respect --prefix for headers during cmake --install #1060
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
cmake: Respect --prefix for headers during cmake --install #1060
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## c_master #1060 +/- ##
=========================================
Coverage 55.45% 55.45%
=========================================
Files 8 8
Lines 1044 1044
=========================================
Hits 579 579
Misses 465 465 |
It seems that the CI (Linux) doesn't start. I think that it is caused by ubuntu18.04 end of support. And your PR is the first one after that. I guess that the following line should be updated to msgpack-c/.github/workflows/gha.yml Line 69 in 8b57d2c
|
Sure. Which one do you prefer? |
5ce1f4d
to
1d87bd8
Compare
I went with |
f966327
to
1e5aa18
Compare
There is more work involved in updating Linux CI. I will work on that in a separate PR as it is becoming more involved. |
I created #1061 to get Linux CI updated… |
Removing CMAKE_INSTALL_PREFIX allows for `cmake --install <build-dir> --prefix=<installation-prefix>` to install headers at `<installation-prefix>/include` at install time. When CMAKE_INSTALL_PREFIX is present in `INSTALL()`, it is hard-coded during configuration (e.g., `cmake -S .`), which disallows it from being set at install time.
1e5aa18
to
80f6000
Compare
@redboltz, I rebased this PR against the latest |
Thank you! merged. |
Removing CMAKE_INSTALL_PREFIX allows for
cmake --install <build-dir> --prefix=<installation-prefix>
to install headers at<installation-prefix>/include
at install time.When CMAKE_INSTALL_PREFIX is present in
INSTALL()
, it is hard-coded during configuration (e.g.,cmake -S .
), which disallows it from being set at install time.Closes: #782