You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(Vcvars): Support FunctionsOnly component to skip discovery logic
Add support for the `FunctionsOnly` component to the Vcvars package.
When specified via:
find_package(Vcvars REQUIRED COMPONENTS FunctionsOnly)
the module will only define the helper functions:
- Vcvars_GetVisualStudioPaths
- Vcvars_ConvertMsvcVersionToVsVersion
It will skip all logic related to:
- auto-detecting the latest installed MSVC version
- locating the appropriate vcvars batch file
- generating a wrapper launcher
This is useful in contexts like script mode (e.g., `cmake -P`) where
only the helper logic is needed, and not full environment setup.
To ensure consistency and avoid ambiguous usage, the module requires that
`FunctionsOnly` be passed exactly (case-sensitive and standalone). Any mixed
or misspelled components will trigger a fatal error.
Documentation was updated accordingly.
0 commit comments