function cpObj = copyElement(obj)
% Override superclass copyElement method

% Copyright 2021 The MathWorks, Inc.

cpObj = copyElement@matlab.mixin.Copyable(obj);
cpObj = copyElement@RTW.BuildInfoBuildObj(cpObj);

% Some properties must be deep copied
cpObj.BuildArgs = copy(cpObj.BuildArgs);
cpObj.MakeVars = copy(cpObj.MakeVars);
cpObj.Tokens = copy(cpObj.Tokens);
