Skip to content

Commit 322f5d5

Browse files
authored
Modify buildVcpkgDeps to return status and output
Updated buildVcpkgDeps function to return status and command output.
1 parent 8476ce6 commit 322f5d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

toolbox/+vcpkg/buildVcpkgDeps.m

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

33
% Copyright 2025 The MathWorks, Inc.
44

@@ -108,8 +108,8 @@ function buildVcpkgDeps(manifestFolder, vpckgArguments, options)
108108
end
109109

110110
% Run vcpkg command
111-
status = system(vcpkgCmd, '-echo');
112-
assert(status == 0, 'Error running vcpkg command');
111+
[status,cmdout] = system(vcpkgCmd, '-echo');
112+
assert(status == 0, 'Error running vcpkg command: %s', cmdout);
113113

114114
end
115115

0 commit comments

Comments
 (0)