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

% Copyright 2021 The MathWorks, Inc.

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

% Some properties must be deep copied
cpObj.Defines = copy(cpObj.Defines);
cpObj.CompileFlags = copy(cpObj.CompileFlags);
cpObj.ArchiveFlags = copy(cpObj.ArchiveFlags);
cpObj.LinkFlags = copy(cpObj.LinkFlags);
