How to correctly specify build variant for dependencies in conda-build

We depend on the occt package in both the host and runtime environments and want to specify to use the novtk build variant of occt, otherwise it will default to the all variant. I have added this to the conda_build_config.yaml file:

occt:
  - '=*=novtk*'

and here is a truncated snippet from the meta file:

requirements:
  host:
    - occt {{ occt }}
  run
   - occt {{ occt }}

I’m wondering if this is correct? Will this override the run_export imposed in the occt recipe (which I probably don’t want to do because it might cause ABI compatibility issues)?

If this isn’t the correct syntax, then how would I specify to pick up a particular build variant while maintaining the compatibility?

Yea, that might override the pinning. What if you do:

...
  - occt
  - occt * novtk*
...

Does that work?

I went ahead with the syntax I put in the original post and we’re quite confident that it’s working correctly