Skip to content

vcpkg package in manifest mode is failing in find_package #7553

@Akylzhan

Description

@Akylzhan

Xmake Version

v3.0.8+20260503

Operating System Version and Architecture

Fedora 44

Describe Bug

vcpkg's find_package.lua uses vcpkg depend-info with package name argument in https://github.com/xmake-io/xmake/blob/dev/xmake/modules/package/manager/vcpkg/find_package.lua#L223 in manifest mode
But vcpkg complains about that:

📦[user@devbox test_ffmpeg]$ ./vcpkg/vcpkg depend-info pcre2
**error: In manifest mode, `vcpkg install` does not support individual package arguments.**
To install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.
See https://learn.microsoft.com/vcpkg/users/manifests?WT.mc_id=vcpkg_inproduct_cli for more information.
Using manifest file at /home/user/devbox_home/test_ffmpeg/vcpkg.json.
Synopsis: Displays a list of dependencies for ports
Examples:
  vcpkg depend-info <port name>
  vcpkg depend-info
See https://learn.microsoft.com/vcpkg/commands/depend-info for more information.
Options:
  --x-asset-sources=...  Asset caching sources. See 'vcpkg help assetcaching'
  ...

📦[user@devbox test_ffmpeg]$ ./vcpkg/vcpkg depend-info 
vcpkg-cmake-config: 
vcpkg-cmake: 
pcre2[platform-default-features, jit]: vcpkg-cmake, vcpkg-cmake-config

To fix that we need to remove depend_name in the script above. I would have done that myself but I am not familiar with neither vcpkg nor xmake to be sure that it will fix the issue and won't cause any issues

Expected Behavior

Expected to successfully consume vcpkg packages

Project Configuration

add_requires("vcpkg::pcre2", { configs = {baseline = "5e5139e98a515cd85840cc94fa2cd22d580a9bb8"}})

Additional Information and Error Logs

vcpkg's error logs are not reported because of os.iorunv

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    In progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions