diff options
author | Roland Reichwein <mail@reichwein.it> | 2024-05-09 16:50:36 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2024-05-09 16:50:36 +0200 |
commit | 1eaf818aa9339f29d08cf79601836c0ea763c622 (patch) | |
tree | d56554c99df8c2cfe0642e2f91e5c96d26dd8fe9 /LanguageSettings.cpp | |
parent | 242b03bc8da841a9527ad845eb60275008155afb (diff) |
Use specified includepath
Diffstat (limited to 'LanguageSettings.cpp')
-rw-r--r-- | LanguageSettings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LanguageSettings.cpp b/LanguageSettings.cpp index 57a550d..1d243d5 100644 --- a/LanguageSettings.cpp +++ b/LanguageSettings.cpp @@ -73,7 +73,7 @@ std::string LanguageSettings::getCompileCommand(const std::filesystem::path& tar const std::vector<std::filesystem::path>& includepaths) const { std::string includes{std::accumulate(includepaths.begin(), includepaths.end(), std::string{}, - [](const std::string& sum, const fs::path& p){ return sum + " " + p.string();})}; + [](const std::string& sum, const fs::path& p){ return sum + " -I" + p.string();})}; // compile: $(CXX) $(CXXFLAGS) -c $< -o $@ return fmt::format("{}{}{} -c {} -o {}", |