]> git.tdb.fi Git - builder.git/blobdiff - source/component.cpp
Only use source files that are actually files
[builder.git] / source / component.cpp
index 2bfa736e14ea2dc7663fcae75b5f6f8c3329395a..e8fdd5806dfacd341a06b8bd2a1081b465bbf7c2 100644 (file)
@@ -2,8 +2,7 @@
 #include <msp/fs/dir.h>
 #include <msp/fs/stat.h>
 #include <msp/fs/utils.h>
-#include <msp/io/print.h>
-#include <msp/strings/lexicalcast.h>
+#include <msp/strings/format.h>
 #include "builder.h"
 #include "component.h"
 #include "sourcepackage.h"
@@ -111,7 +110,9 @@ Component::SourceList Component::collect_source_files() const
                                                        continue;
                                                overlay_files.insert(*k);
                                        }
-                                       files.push_back(*j / *k);
+                                       FS::Path fn = *j / *k;
+                                       if(!FS::is_dir(fn))
+                                               files.push_back(fn);
                                }
                        }
                }