Fix absolute paths causing Makefile errors

This commit is contained in:
Thraix
2025-06-04 21:31:33 +02:00
parent f6caefb078
commit d3c334dc79
6 changed files with 26 additions and 11 deletions
+8 -2
View File
@@ -1,8 +1,9 @@
#pragma once
#include <filesystem>
#include <iostream>
#include <set>
#include <string>
#include <iostream>
struct HFile
@@ -10,7 +11,7 @@ struct HFile
std::string filename;
bool isProjectHFile;
std::string filepath;
std::filesystem::path filepath;
HFile(const std::string& filename, const std::string& directory, bool isProjectHFile)
: filename{filename}, isProjectHFile{isProjectHFile}, filepath{directory+filename}
@@ -20,6 +21,11 @@ struct HFile
{
return h1.filename < h2.filename;
}
friend std::ostream& operator<<(std::ostream& ostream, const HFile& hFile)
{
return ostream << "filename: " << hFile.filename << "\tfilepath: " << hFile.filepath.string();
}
};
class ConfigFile;