Files
Sourcetrail/src/lib/utility/utilityCxx.cpp
T
mlangkabel dfc6d88432 build: search headers in all source directories
* removed paths in include directives
* changed cmake to provide necessary header search paths
* changed name of version.h to productVersion.h due to name conflict
2018-09-18 19:00:18 +02:00

31 lines
660 B
C++

#include "utilityCxx.h"
#include "ResourcePaths.h"
#include "utilityApp.h"
namespace utility
{
std::vector<FilePath> replaceOrAddCxxCompilerHeaderPath(const std::vector<FilePath>& headerSearchPaths)
{
std::vector<FilePath> newHeaderSearchPaths;
if (utility::getOsType() == OS_WINDOWS)
{
newHeaderSearchPaths = headerSearchPaths;
}
else
{
for (const FilePath& path : headerSearchPaths)
{
if (!path.getConcatenated(L"/stdarg.h").exists())
{
newHeaderSearchPaths.push_back(path);
}
}
}
newHeaderSearchPaths.push_back(ResourcePaths::getCxxCompilerHeaderPath().getCanonical());
return newHeaderSearchPaths;
}
}