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

Use trailing slash with include directory #332

Merged
merged 1 commit into from
Feb 16, 2023
Merged

Use trailing slash with include directory #332

merged 1 commit into from
Feb 16, 2023

Conversation

samford
Copy link
Contributor

@samford samford commented Feb 16, 2023

CMakeLists.txt references the include directory without a trailing slash, which can cause related files to be installed to include/include (e.g., we experienced this in Homebrew while updating the cmu-pocketsphinx formula to 5.0.0). Using include/ ensures the files will be installed to include, as expected (related documentation here: https://cmake.org/cmake/help/latest/command/install.html#directory).

`CMakeLists.txt` references the `include` directory without a trailing
slash, which can cause related files to be installed to
`include/include` (e.g., in Homebrew). Using `include/` ensures the
files will be installed to `include`, as expected.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
@dhdaines
Copy link
Contributor

Yikes! you're right. How did I miss that...

@dhdaines dhdaines merged commit 74a5ec8 into cmusphinx:master Feb 16, 2023
@samford samford deleted the add-trailing-slash-to-cmake-include-dir branch February 16, 2023 21:33
@samford
Copy link
Contributor Author

samford commented Feb 16, 2023

Thanks for the quick turnaround! I've updated the related Homebrew PR to use the commit patch from this repository for the time being and we'll be able to remove the patch from the formula on the next release 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants