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

Fix include CMAKE_INSTALL_INCLUDEDIR #111

Merged

Conversation

WangWeiLin-MV
Copy link
Contributor

@WangWeiLin-MV WangWeiLin-MV commented Apr 25, 2024

The target_include_directories changed from $<INSTALL_INTERFACE:include> to $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> in 8d6218a#diff, while GNUInstallDirs cmake/install.cmake#L5 has not yet been included, led target scn::scn lost INTERFACE_INCLUDE_DIRECTORIES.

Move the public include define INSTALL_INTERFACE to fix it.
Move include(GNUInstallDirs) to fix it.

@WangWeiLin-MV WangWeiLin-MV marked this pull request as ready for review April 25, 2024 05:16
@eliaskosunen eliaskosunen merged commit e149892 into eliaskosunen:master May 15, 2024
111 of 112 checks passed
@eliaskosunen
Copy link
Owner

Whoops, thank you!

@WangWeiLin-MV WangWeiLin-MV deleted the fix/cmake-install-include-dir branch May 16, 2024 01:43
data-queue pushed a commit to microsoft/vcpkg that referenced this pull request May 17, 2024
Fixes include `CMAKE_INSTALL_INCLUDEDIR` since target `scn::scn` lost
`INTERFACE_INCLUDE_DIRECTORIES`,

Fixed by backporting upstream patches in
eliaskosunen/scnlib#111.

Format and unify `EOL` to `LF` of `portfile.cmake`.

### Checklist
- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [ ] ~The "supports" clause reflects platforms that may be fixed by
this new version.~
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] Any patches that are no longer applied are deleted from the port's
directory.
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.

### Test
The port usage tests pass with the following triplets:
* x64-linux
* x64-windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants