Skip to content

Improve lib.detect.find_package to support vcpkg #184

Closed
@waruqi

Description

@waruqi
Member
No description provided.

Activity

added this to the v2.2.2 milestone on Aug 10, 2018
waruqi

waruqi commented on Aug 17, 2018

@waruqi
MemberAuthor

find vcpkg directory: $ xmake l detect.sdks.find_vcpkgdir

waruqi

waruqi commented on Aug 21, 2018

@waruqi
MemberAuthor
waruqi

waruqi commented on Aug 21, 2018

@waruqi
MemberAuthor

xmake will attempt to detect the vcpkg root directory automatically if we have executed $ vcpkg integrate install.

And we can also set the vcpkg directory manually.

$ xmake f --vcpkg=f:\vcpkg
waruqi

waruqi commented on Aug 21, 2018

@waruqi
MemberAuthor

Find and add package.

target("test")
    on_load(function (target)
        import("lib.detect.find_package")
        target:add(find_package("zlib"))
    end)

If you want to known more infomation, you can see find_package and #122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @waruqi

        Issue actions

          Improve lib.detect.find_package to support vcpkg · Issue #184 · xmake-io/xmake