Skip to content

How can I control a feature of a dependency at configure time? #38158

Closed Answered by Osyotr
kevin-- asked this question in Q&A
Discussion options

You must be logged in to vote

Can we specify the feature of a dependency on the command line or in CMakeLists.txt somehow?

No.

this does not work because extra-auth is not a feature of the host vcpkg.json.

It should be:

{
  "name": "my-project",
  "dependencies": [
    "sick-library"
  ],
  "features": {
    "do-more-auth": {
      "dependencies": [
        {
          "name": "sick-library",
          "features": {
            "extra-auth"
          }
        }
      ]
    }
  }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kevin--
Comment options

Answer selected by kevin--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants