Improve performance of vcpkg-tool install #29857
Labels
category:vcpkg-feature
The issue is a new capability of the tool that doesn’t already exist and we haven’t committed
Stale
Is your feature request related to a problem? Please describe.
When setting
CMAKE_TOOLCHAIN_PATH
toscripts/buildsystems/vcpkg.cmake
and using manifest-mode, thevcpkg install
command gets run for every CMake rerun. Even if all packages are already installed, this step takes1.7s
on my machine, which is a major delay when working on your Project's CMake Build system with an IDE that re-runs CMake on every edit (e. g. Visual Studio).Where the time is currently being spent:
Proposed solution
Please either get rid of some steps in
vcpkg install
or make them faster.For example, when using
vcpkg.cmake
we could avoid having to detect the compiler again invcpkg install
.I have already tried to use
GetFileVersionInfoW
to detect the PowerShell Core version, but got into some trouble with the fake "app execution alias"/symlink inC:\Users\%USERNAME%\AppData\Local\Microsoft\WindowsApps\
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: