Skip to content

Use trailing slash with include directory#332

Merged
dhdaines merged 1 commit intocmusphinx:masterfrom
samford:add-trailing-slash-to-cmake-include-dir
Feb 16, 2023
Merged

Use trailing slash with include directory#332
dhdaines merged 1 commit intocmusphinx:masterfrom
samford:add-trailing-slash-to-cmake-include-dir

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 <[email protected]>
@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.

2 participants