Skip to content

Commit

Permalink
Don't add duplicate source files to XML in grtfmi.tlc
Browse files Browse the repository at this point in the history
fixes #339
  • Loading branch information
t-sommer committed Feb 28, 2022
1 parent a6d5d4d commit 3e7f8e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions grtfmi/grtfmi_model_sources.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
sources = strrep(sources, '\', '/');
libraries = strrep(libraries, '\', '/');

% remove duplicates
include = unique(include);
sources = unique(sources);
libraries = unique(libraries);

if nargout == 3
varargout = {include, sources, libraries};
else
Expand Down

0 comments on commit 3e7f8e3

Please sign in to comment.