如果未传递INVERTED_FEATURES,则FEATURES关键字是可选的。 不推荐使用此行为。 如果多次传递相同的<feature-var>,则vcpkg_check_features会导致致命错误,因为这是一个 bug。 示例 示例1:常规功能 cmake复制 $ ./vcpkginstallmimalloc[asm,secure]# ports/mimalloc/portfile.cmakevcpkg_check_features(OUT_FEATURE_OPT...
如果未INVERTED_FEATURES傳遞,則FEATURES關鍵詞是選擇性的。 這個行為已被取代。 如果相同<feature-var>多次傳遞,則vcpkg_check_features會導致嚴重錯誤,因為這是錯誤。 範例 範例1:一般功能 cmake $ ./vcpkginstallmimalloc[asm,secure]# ports/mimalloc/portfile.cmakevcpkg_check_features(OUT_FEATURE_OPTIONS FEATUR...
如果未INVERTED_FEATURES傳遞,則FEATURES關鍵詞是選擇性的。 這個行為已被取代。 如果相同<feature-var>多次傳遞,則vcpkg_check_features會導致嚴重錯誤,因為這是錯誤。 範例 範例1:一般功能 cmake $ ./vcpkginstallmimalloc[asm,secure]# ports/mimalloc/portfile.cmakevcpkg_check_features(OUT_FEATURE_OPTIONS FEATUR...
Example 1: Regular features cmake $ ./vcpkginstallmimalloc[asm,secure]# ports/mimalloc/portfile.cmakevcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES asm MI_SEE_ASM override MI_OVERRIDE secure MI_SECURE ) vcpkg_cmake_configure( SOURCE_PATH"${SOURCE_PATH}"OPTIONS# Expands to "...
vcpkg_check_features( OUT_FEATURE_OPTIONS <out-var> [PREFIX <prefix>] [FEATURES [<feature-name> <feature-var>]... ] [INVERTED_FEATURES [<feature-name> <feature-var>]... ] ) Měla by být nastavena <out-var>FEATURE_OPTIONS podle konvence.vcpkg_check_features() Bude:pro...
vcpkg_check_features() will:for each <feature-name> passed in FEATURES: if the feature is set, add -D<feature-var>=ON to <out-var>, and set <prefix>_<feature-var> to ON. if the feature is not set, add -D<feature-var>=OFF to <out-var>, and set <prefix>_<feature-var> ...
Example 1: Regular features cmake $ ./vcpkginstallmimalloc[asm,secure]# ports/mimalloc/portfile.cmakevcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES asm MI_SEE_ASM override MI_OVERRIDE secure MI_SECURE ) vcpkg_cmake_configure( SOURCE_PATH"${SOURCE_PATH}"OPTIONS# Expands to "...
vcpkg_check_features( OUT_FEATURE_OPTIONS <out-var> [PREFIX <prefix>] [FEATURES [<feature-name> <feature-var>]... ] [INVERTED_FEATURES [<feature-name> <feature-var>]... ] ) L'oggetto <out-var> deve essere impostato su FEATURE_OPTIONS per convenzione.vcpkg_check_features() will:pe...