Skip to content

Commit 6e149ff

Browse files
committed
Error out if vcpkg install fails with BUILD_FAILED.
1 parent 322f5d5 commit 6e149ff

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

toolbox/+vcpkg/buildVcpkgDeps.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
function [status,cmdout] = buildVcpkgDeps(manifestFolder, vpckgArguments, options)
1+
function cmdout = buildVcpkgDeps(manifestFolder, vpckgArguments, options)
22

3-
% Copyright 2025 The MathWorks, Inc.
3+
% Copyright 2026 The MathWorks, Inc.
44

55
arguments
66
manifestFolder char {mustBeFolder}
@@ -109,7 +109,10 @@
109109

110110
% Run vcpkg command
111111
[status,cmdout] = system(vcpkgCmd, '-echo');
112-
assert(status == 0, 'Error running vcpkg command: %s', cmdout);
112+
assert(status == 0, 'Error running vcpkg command');
113+
114+
% Manually check vcpkg errors in console output
115+
assert(~contains(cmdout,'BUILD_FAILED'),'vcpkg install not complete successfully due to BUILD_FAILED.');
113116

114117
end
115118

0 commit comments

Comments
 (0)