mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
Introduce a cmLocalGenerator::ConvertToIncludeReference function
This provides a mechanism for the local generator to override how header search paths are generated.
This commit is contained in:
parent
903d914b28
commit
5b114c9bee
@ -1184,6 +1184,13 @@ cmLocalGenerator::ConvertToOutputForExisting(RelativeRoot remote,
|
||||
return this->ConvertToOutputForExistingCommon(remotePath, result);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
std::string
|
||||
cmLocalGenerator::ConvertToIncludeReference(std::string const& path)
|
||||
{
|
||||
return this->ConvertToOutputForExisting(path.c_str());
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
const char* cmLocalGenerator::GetIncludeFlags(const char* lang,
|
||||
bool forResponseFile)
|
||||
@ -1285,7 +1292,7 @@ const char* cmLocalGenerator::GetIncludeFlags(const char* lang,
|
||||
}
|
||||
else
|
||||
{
|
||||
includePath = this->ConvertToOutputForExisting(i->c_str());
|
||||
includePath = this->ConvertToIncludeReference(*i);
|
||||
}
|
||||
if(quotePaths && includePath.size() && includePath[0] != '\"')
|
||||
{
|
||||
|
@ -179,7 +179,9 @@ public:
|
||||
path and short path if spaces. */
|
||||
std::string ConvertToOutputForExisting(RelativeRoot remote,
|
||||
const char* local = 0);
|
||||
|
||||
|
||||
virtual std::string ConvertToIncludeReference(std::string const& path);
|
||||
|
||||
/** Called from command-line hook to clear dependencies. */
|
||||
virtual void ClearDependencies(cmMakefile* /* mf */,
|
||||
bool /* verbose */) {}
|
||||
|
Loading…
Reference in New Issue
Block a user