mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 00:00:39 -05:00
cmHeadToLinkInterfaceMap: Port to cmGeneratorTarget.
This commit is contained in:
@@ -4490,7 +4490,7 @@ cmGeneratorTarget::GetLinkInterface(const std::string& config,
|
|||||||
return &hm.begin()->second;
|
return &hm.begin()->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmOptionalLinkInterface& iface = hm[head->Target];
|
cmOptionalLinkInterface& iface = hm[head];
|
||||||
if(!iface.LibrariesDone)
|
if(!iface.LibrariesDone)
|
||||||
{
|
{
|
||||||
iface.LibrariesDone = true;
|
iface.LibrariesDone = true;
|
||||||
@@ -4642,7 +4642,7 @@ cmGeneratorTarget::GetLinkInterfaceLibraries(const std::string& config,
|
|||||||
return &hm.begin()->second;
|
return &hm.begin()->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmOptionalLinkInterface& iface = hm[head->Target];
|
cmOptionalLinkInterface& iface = hm[head];
|
||||||
if(!iface.LibrariesDone)
|
if(!iface.LibrariesDone)
|
||||||
{
|
{
|
||||||
iface.LibrariesDone = true;
|
iface.LibrariesDone = true;
|
||||||
@@ -5079,7 +5079,7 @@ cmGeneratorTarget::GetImportLinkInterface(const std::string& config,
|
|||||||
return &hm.begin()->second;
|
return &hm.begin()->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmOptionalLinkInterface& iface = hm[headTarget->Target];
|
cmOptionalLinkInterface& iface = hm[headTarget];
|
||||||
if(!iface.AllDone)
|
if(!iface.AllDone)
|
||||||
{
|
{
|
||||||
iface.AllDone = true;
|
iface.AllDone = true;
|
||||||
|
|||||||
+2
-1
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
#include "cmListFileCache.h"
|
#include "cmListFileCache.h"
|
||||||
|
|
||||||
|
class cmGeneratorTarget;
|
||||||
class cmTarget;
|
class cmTarget;
|
||||||
|
|
||||||
// Basic information about each link item.
|
// Basic information about each link item.
|
||||||
@@ -97,7 +98,7 @@ struct cmOptionalLinkInterface: public cmLinkInterface
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct cmHeadToLinkInterfaceMap:
|
struct cmHeadToLinkInterfaceMap:
|
||||||
public std::map<cmTarget const*, cmOptionalLinkInterface>
|
public std::map<cmGeneratorTarget const*, cmOptionalLinkInterface>
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user