function names = getBuildConfigurationNames(h)

%   Copyright 2014 The MathWorks, Inc.

names = h.BuildConfigurations.keys();
orderedBaselineCfgs = coder.make.ToolchainInfo.getBaselineBuildConfigs();
if numel( names )==3
    names = orderedBaselineCfgs;
elseif numel( names )>3
    names = horzcat( orderedBaselineCfgs, setdiff( names, orderedBaselineCfgs ) );
end
end
