diff --git a/docs/maintainers/vcpkg_check_features.md b/docs/maintainers/vcpkg_check_features.md index beb599664b1205..1dac54fde133c5 100644 --- a/docs/maintainers/vcpkg_check_features.md +++ b/docs/maintainers/vcpkg_check_features.md @@ -48,6 +48,8 @@ Arguments passed to `FEATURES` and `INVERTED_FEATURES` are not validated to prev If the same (`FEATURE_NAME`, `OPTION_NAME`) pair is passed to both lists, two conflicting definitions are added to `OUT_FEATURE_OPTIONS`. +For each definition added to `OUT_FEATURE_OPTIONS`, the corresponding variable will also be set in +the parent scope, so they are immediately available after calling this function. ## Examples diff --git a/scripts/cmake/vcpkg_check_features.cmake b/scripts/cmake/vcpkg_check_features.cmake index be4e1265c69bf8..507930cf9a5e09 100644 --- a/scripts/cmake/vcpkg_check_features.cmake +++ b/scripts/cmake/vcpkg_check_features.cmake @@ -49,6 +49,8 @@ Arguments passed to `FEATURES` and `INVERTED_FEATURES` are not validated to prev If the same (`FEATURE_NAME`, `OPTION_NAME`) pair is passed to both lists, two conflicting definitions are added to `OUT_FEATURE_OPTIONS`. +For each definition added to `OUT_FEATURE_OPTIONS`, the corresponding variable will also be set in +the parent scope, so they are immediately available after calling this function. ## Examples