mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 01:49:23 -05:00
Add the INTERFACE_SYSTEM_INCLUDE_DIRECTORIES target property.
Unlike other target properties, this does not have a corresponding non-INTERFACE variant. This allows propagation of system attribute on include directories from link dependents.
This commit is contained in:
@@ -84,10 +84,21 @@ void cmTargetIncludeDirectoriesCommand
|
||||
const std::vector<std::string> &content,
|
||||
bool prepend, bool system)
|
||||
{
|
||||
if (system)
|
||||
{
|
||||
// Error.
|
||||
}
|
||||
cmTargetPropCommandBase::HandleInterfaceContent(tgt, content,
|
||||
prepend, system);
|
||||
|
||||
if (system)
|
||||
{
|
||||
std::string joined;
|
||||
std::string sep;
|
||||
for(std::vector<std::string>::const_iterator it = content.begin();
|
||||
it != content.end(); ++it)
|
||||
{
|
||||
joined += sep;
|
||||
sep = ";";
|
||||
joined += *it;
|
||||
}
|
||||
tgt->AppendProperty("INTERFACE_SYSTEM_INCLUDE_DIRECTORIES",
|
||||
joined.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user