From 1eaf818aa9339f29d08cf79601836c0ea763c622 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 9 May 2024 16:50:36 +0200 Subject: Use specified includepath --- LanguageSettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LanguageSettings.cpp') 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& 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 {}", -- cgit v1.2.3