-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[pkgconfig] Vcpkg integrate does not work at all. #20689
Comments
I think you still have to provide some |
I was also having issues getting pkg-config to work in my own project, even though it is used to build various vcpkg-provided dependencies which my project depends on. I ended up installing pkgconf, which is technically a different project than
As a workaround I provide both exe names to find and set
|
@thehans Yes, for pkgconfig, vcpkg still need to handle something and provides the usage in output and toolchain. |
@thehans Then your |
@Neumann-A I'm just using whatever cmake is bundled with VS2019 and VS2022 respectively. |
Will be fixed partly by #21456. |
I believe this is a "won't fix forever" situation: MSBuild has no equivalent of reading of a .pc file or CMake Config files, so if a port needs / expects those to apply to function, msbuild customers can't use that port. MSBuild integration works fine with all libraries that follow normal "your headers go in include, your libs go in lib, and your binaries go in bin" conventions. Without MSBuild supporting the equivalent of pkgconfig or CMake Configs inside itself there's little we can do. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
Installed gtkmm for the x64-windows triplet.
Ran vcpkg integrate.
I am pointing my cmake toolchain to the file it mentioned.... specifically changed my pkg_check_modules() to find_package() like the docs say and it doesn't work.
passing -DCMAKE_TOOLCHAIN_FILE and -DVCPKG_TARGET_TRIPLET="x64-windows".
Still doesn't find gtkmm-4.0 that it built and has the .pc file for. Am I supposed to override pkg-config too or is that supposed to work unmodified with that toolchain file?
The text was updated successfully, but these errors were encountered: