Skip to content

Commit 972e1c4

Browse files
authored
Explicitly pass install root to ensure removal of spaces and non-supported characters
1 parent f3b31ae commit 972e1c4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

toolbox/+vcpkg/buildVcpkgDeps.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ function buildVcpkgDeps(manifestFolder, vpckgArguments, options)
8787
% Build up vcpkg full command
8888
vcpkgCmd = ['cd ', manifestFolder, ' ',...
8989
targetEnvRootBat,...
90-
' && vcpkg install ',targetTriplet,' --host-triplet ', vcpkg.getHostTriplet,...
90+
' && vcpkg install ', targetTriplet, ' --host-triplet ', vcpkg.getHostTriplet,...
91+
' --x-install-root ', fullfile(manifestFolder,'vcpkg_installed'),... % Explicitly using manifest folder to avoid issues with spaces in MATLAB Add-Ons installation folder
9192
' --overlay-triplets "', fullfile(vcpkg.getToolboxRoot,'overlay-triplets'), '" ', strjoin(vpckgArguments,' ')];
9293

9394
if hasMSVC

0 commit comments

Comments
 (0)