dmake: don't generate Makefile if there are no src files
This commit is contained in:
parent
6bdb14edfd
commit
38286a7d57
|
@ -65,6 +65,11 @@ int main()
|
|||
// Get files..
|
||||
std::vector<std::string> srcfiles;
|
||||
FileLister::RecursiveAddFiles(srcfiles, "src/", true);
|
||||
if (srcfiles.empty())
|
||||
{
|
||||
std::cout << "No source files found." << std::endl;
|
||||
exit(1);
|
||||
}
|
||||
std::vector<std::string> testfiles;
|
||||
FileLister::RecursiveAddFiles(testfiles, "test/", true);
|
||||
|
||||
|
|
Loading…
Reference in New Issue