[openmpi] Fix host pkgconf path#51563
Open
dg0yt wants to merge 4 commits intomicrosoft:masterfrom
Open
Conversation
Contributor
Author
This is FindPkgConfig.cmake in vcpkg-ci-blender being broken by a patch in vcpkg-ci-blender, not by a bug in openmpi. These obvious unusual pkgconfig changes were directly visible when looking at the original PRs. |
dg0yt
commented
May 7, 2026
Comment on lines
+8
to
+11
| +find_package(PkgConfig REQUIRED) | ||
| +pkg_check_modules(epoxy QUIET IMPORTED_TARGET epoxy) | ||
| +set(Epoxy_INCLUDE_DIR "${epoxy_INCLUDE_DIRS}" CACHE INTERNAL "vcpkg") | ||
| +set(Epoxy_LIBRARY "PkgConfig::epoxy" CACHE INTERNAL "vcpkg") |
Contributor
Author
There was a problem hiding this comment.
Applying libepoxy's transitive usage requirements on all platforms.
And everything is ready for canonical use of pkg_check_modules: Portfile provides PKG_CONFIG, CMake transforms prefix path to PKG_CONFIG_PATH.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the pkgconf search path. Restoring the original wrapper code from before #51460 because the pkgconf search path was wrong there and was wrong after the recent change, and no reasons for the other changes were documented.
From that PR, keep
PKG_CONFIG_EXECUTABLElookup beforefind_package(PkgConfig)because this is the right thing: We must init the cache variable before it is done by the find module.