Skip to content

[harfbuzz] Fix CMake config#25092

Merged
ras0219-msft merged 4 commits intomicrosoft:masterfrom
dg0yt:harfbuzz-min
Jun 8, 2022
Merged

[harfbuzz] Fix CMake config#25092
ras0219-msft merged 4 commits intomicrosoft:masterfrom
dg0yt:harfbuzz-min

Conversation

@dg0yt
Copy link
Copy Markdown
Contributor

@dg0yt dg0yt commented Jun 6, 2022

  • What does your PR fix?

    Fixes [harfbuzz] Regression: Cannot set "HARFBUZZ_LIBRARY": current scope has no parent #23694. Alternative to [harfbuzz] Remove PARENT_SCOPE in harfbuzzConfig.cmake.in #23709.
    This is my minimal version of the fix. The config provides variables likes a find module. Some of these variables should be set as (global) cache variables, some should always be set because they are scoped. Only the target can be skipped if it already exists.

    (Note: Trying to complement this port with a test port indicates that the config still needs significant work to be complete, so I decided to only offer a minimal fix now. Even FindICU.cmake doesn't provide release+debug config or transitive usage requirements. And the provided config is "unofficial" - there is a semi-deprecated official config which provides additonal targets.)

  • Which triplets are supported/not supported? Have you updated the CI baseline?

    unchanged

  • Does your PR follow the maintainer guide?

    yes

  • If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?

    yes

@JonLiu1993 JonLiu1993 added the category:port-bug The issue is with a library, which is something the port should already support label Jun 7, 2022
@dg0yt dg0yt marked this pull request as ready for review June 7, 2022 07:52
@JonLiu1993 JonLiu1993 added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Jun 8, 2022
@ras0219-msft ras0219-msft merged commit 5d992a4 into microsoft:master Jun 8, 2022
@ras0219-msft
Copy link
Copy Markdown
Contributor

Thanks! This was really annoying -- so happy to see it fixed :)

@dalboris
Copy link
Copy Markdown

dalboris commented Jun 9, 2022

Perfect, it works like a charm, thanks!

@dg0yt dg0yt deleted the harfbuzz-min branch June 10, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-bug The issue is with a library, which is something the port should already support info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[harfbuzz] Regression: Cannot set "HARFBUZZ_LIBRARY": current scope has no parent

4 participants