Skip to content

The vcpkg portfile.cmake should be updated to avoid using deprecated functions #2107

Description

@ahsonkhan

For example, update usages of vcpkg_configure_cmakethis for all the portfiles:

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/sdk/core/azure-core/
PREFER_NINJA
OPTIONS
${FEATURE_OPTIONS}
-DWARNINGS_AS_ERRORS=OFF
)

For the deprecated function, can you update it as the new function vcpkg_cmake_configure() automatically?
Please see the reference here https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_configure_cmake.md

Other related functions are also deprecated, such as vcpkg_install_cmakevcpkg_fixup_cmake_targets().

We prefer to use the new functions in new ports.

Originally posted by @NancyLi1013 in microsoft/vcpkg#17143 (comment)

cc @antkmsft

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.EngSysThis issue is impacting the engineering system.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions