mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-20 21:28:23 -05:00
cmComputeLinkInformation: Port data interface to cmGeneratorTarget.
This commit is contained in:
@@ -517,8 +517,9 @@ void cmExportFileGenerator::PopulateInterfaceProperty(
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void getPropertyContents(cmTarget const* tgt, const std::string& prop,
|
||||
std::set<std::string> &ifaceProperties)
|
||||
void getPropertyContents(cmGeneratorTarget const* tgt,
|
||||
const std::string& prop,
|
||||
std::set<std::string> &ifaceProperties)
|
||||
{
|
||||
const char *p = tgt->GetProperty(prop);
|
||||
if (!p)
|
||||
@@ -589,11 +590,11 @@ void cmExportFileGenerator::PopulateCompatibleInterfaceProperties(
|
||||
|
||||
std::set<std::string> ifaceProperties;
|
||||
|
||||
getPropertyContents(target, "COMPATIBLE_INTERFACE_BOOL", ifaceProperties);
|
||||
getPropertyContents(target, "COMPATIBLE_INTERFACE_STRING", ifaceProperties);
|
||||
getPropertyContents(target, "COMPATIBLE_INTERFACE_NUMBER_MIN",
|
||||
getPropertyContents(gtarget, "COMPATIBLE_INTERFACE_BOOL", ifaceProperties);
|
||||
getPropertyContents(gtarget, "COMPATIBLE_INTERFACE_STRING", ifaceProperties);
|
||||
getPropertyContents(gtarget, "COMPATIBLE_INTERFACE_NUMBER_MIN",
|
||||
ifaceProperties);
|
||||
getPropertyContents(target, "COMPATIBLE_INTERFACE_NUMBER_MAX",
|
||||
getPropertyContents(gtarget, "COMPATIBLE_INTERFACE_NUMBER_MAX",
|
||||
ifaceProperties);
|
||||
|
||||
if (target->GetType() != cmTarget::INTERFACE_LIBRARY)
|
||||
|
||||
Reference in New Issue
Block a user