function setOutputFolder(h, lOutputFolder)
%setOutputFolder: internal function

%   Copyright 2017-2019 The MathWorks, Inc.
    
lStartDir = h.Settings.LocalAnchorDir;
N = length(lStartDir);
if strncmp(lOutputFolder, lStartDir, N)
    outFolder = fullfile('$(START_DIR)', lOutputFolder(N+2:end));
else
    outFolder = lOutputFolder;
end
    
h.Settings.BuildInfoOutputFolder = outFolder;

