-
Notifications
You must be signed in to change notification settings - Fork 34
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
Normalize header install path (backport #467) #474
Conversation
The "meta" header containing a list of all includes in the package is currently installed one folder above the other includes. This cleans up the definition of that install path by normalizing it to fix a cmake warning and also renaming some variables for clarity. Signed-off-by: Steve Peters <[email protected]> (cherry picked from commit 5b556fb)
cmake/GzInstallAllHeaders.cmake
Outdated
# Generate the "master" header that includes all of the headers | ||
configure_file(${master_header_in} ${master_header_out}) | ||
# Generate the install directory for the "meta" header one folder above the "config" header | ||
cmake_path(SET meta_header_install_dir NORMALIZE ${config_header_install_dir}/..) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this command was added in cmake 3.20, so wrap this in a ${CMAKE_VERSION}
check
Signed-off-by: Steve Peters <[email protected]>
before merging:
|
this test has only the same 5 compilation warnings as the previous run: |
I'll merge this and make a prerelease for further testing |
|
🦟 Bug fix
Fixes #461
Summary
The "meta" header file that contains includes of all other core / component header files is installed to a relative path, one folder above the other include files. This was causing a cmake warning that the path wasn't normalized. This PR normalizes that path variable to fix the warning. It also renames some variables from
master_*
tometa_*
(6bd2d3d) for consistency and improved language and defines distinct variables for theconfig_header_install_dir
andmeta_header_install_dir
(part of d32068d) to clarify what each variable represents, since the "meta" header previously wasn't actually installed tometa_header_install_dir
.This should be tested with downstream packages, including
gz-plugin
(to confirm the cmake warning is fixed) andsdformat
(which uses theREPLACE_INCLUDE_PATH
option).Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.This is an automatic backport of pull request #467 done by [Mergify](https://mergify.com).