Add to vcpkg.cmake
MODIFY
src/vcpkg/build.cpp
src/vcpkg/build.cpp
@@ -401,6 +401,7 @@ namespace vcpkg::Build
{"CURRENT_PORT_DIR", config.port_dir},
{"TARGET_TRIPLET", triplet.canonical_name()},
{"TARGET_TRIPLET_FILE", paths.get_triplet_file_path(triplet).u8string()},
+ {"CMAKE_PORT_SETTINGS", config.port_dir / "port_settings.cmake"},
{"VCPKG_PLATFORM_TOOLSET", toolset.version.c_str()},
{"VCPKG_USE_HEAD_VERSION", Util::Enum::to_bool(config.build_package_options.use_head_version) ? "1" : "0"},
{"DOWNLOADS", paths.downloads},

Add to vcpkg.cmake