mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
Merge topic 'use-generator-target'
1c1c2a12cmGeneratorTarget: Port ExpandLinkItems away from cmTarget.c66084f5cmGeneratorTarget: Port GetImportLinkInterface away from cmTarget.83c29e39cmGeneratorTarget: Port ComputeLinkImplementationLibraries away from cmTarget.19882554cmGeneratorTarget: Port handleSystemIncludesDep away from cmTarget.c1f687b1cmGeneratorTarget: Port GetLinkImplementationLibrariesInternal.a6e1f05ccmGeneratorTarget: Port ComputeLinkInterface away from cmTarget.654002fecmGeneratorTarget: Port ComputeLinkInterfaceLibraries away from cmTarget.922c8901cmGeneratorTarget: Port GetLinkInterface away from cmTarget.eaa5b9cbcmGeneratorTarget: Port cmTargetCollectLinkLanguages away from cmTarget.f539da12cmGeneratorTarget: Port GetLinkInterfaceLibraries away from cmTarget.1c5d70f9cmGeneratorTarget: Port processILibs away from cmTarget.064c2488cmComputeLinkDepends: Port some API to cmGeneratorTarget.3e428fdccmGeneratorTarget: Move IsImportedSharedLibWithoutSOName from cmTarget.110fd2fbcmGeneratorTarget: Move GetOutputTargetType from cmTarget.e7391699cmGeneratorTarget: Move HasMacOSXRpathInstallNameDir from cmTarget.c5718217cmGeneratorTarget: Move HaveInstallTreeRPATH from cmTarget. ...
This commit is contained in:
@@ -805,7 +805,11 @@ cmLocalVisualStudio6Generator::MaybeCreateOutputDir(cmTarget& target,
|
||||
// VS6 forgets to create the output directory for archives if it
|
||||
// differs from the intermediate directory.
|
||||
if(target.GetType() != cmTarget::STATIC_LIBRARY) { return pcc; }
|
||||
std::string outDir = target.GetDirectory(config, false);
|
||||
|
||||
cmGeneratorTarget* gt =
|
||||
this->GlobalGenerator->GetGeneratorTarget(&target);
|
||||
|
||||
std::string outDir = gt->GetDirectory(config, false);
|
||||
|
||||
// Add a pre-link event to create the directory.
|
||||
cmCustomCommandLine command;
|
||||
@@ -1363,20 +1367,20 @@ void cmLocalVisualStudio6Generator
|
||||
#ifdef CM_USE_OLD_VS6
|
||||
outputDirOld =
|
||||
removeQuotes(this->ConvertToOutputFormat
|
||||
(target.GetDirectory().c_str(), SHELL));
|
||||
(gt->GetDirectory().c_str(), SHELL));
|
||||
#endif
|
||||
outputDirDebug =
|
||||
removeQuotes(this->ConvertToOutputFormat(
|
||||
target.GetDirectory("Debug").c_str(), SHELL));
|
||||
gt->GetDirectory("Debug").c_str(), SHELL));
|
||||
outputDirRelease =
|
||||
removeQuotes(this->ConvertToOutputFormat(
|
||||
target.GetDirectory("Release").c_str(), SHELL));
|
||||
gt->GetDirectory("Release").c_str(), SHELL));
|
||||
outputDirMinSizeRel =
|
||||
removeQuotes(this->ConvertToOutputFormat(
|
||||
target.GetDirectory("MinSizeRel").c_str(), SHELL));
|
||||
gt->GetDirectory("MinSizeRel").c_str(), SHELL));
|
||||
outputDirRelWithDebInfo =
|
||||
removeQuotes(this->ConvertToOutputFormat(
|
||||
target.GetDirectory("RelWithDebInfo").c_str(), SHELL));
|
||||
gt->GetDirectory("RelWithDebInfo").c_str(), SHELL));
|
||||
}
|
||||
else if(target.GetType() == cmTarget::OBJECT_LIBRARY)
|
||||
{
|
||||
@@ -1424,12 +1428,12 @@ void cmLocalVisualStudio6Generator
|
||||
target.GetType() == cmTarget::MODULE_LIBRARY ||
|
||||
target.GetType() == cmTarget::EXECUTABLE)
|
||||
{
|
||||
std::string fullPathImpDebug = target.GetDirectory("Debug", true);
|
||||
std::string fullPathImpRelease = target.GetDirectory("Release", true);
|
||||
std::string fullPathImpDebug = gt->GetDirectory("Debug", true);
|
||||
std::string fullPathImpRelease = gt->GetDirectory("Release", true);
|
||||
std::string fullPathImpMinSizeRel =
|
||||
target.GetDirectory("MinSizeRel", true);
|
||||
gt->GetDirectory("MinSizeRel", true);
|
||||
std::string fullPathImpRelWithDebInfo =
|
||||
target.GetDirectory("RelWithDebInfo", true);
|
||||
gt->GetDirectory("RelWithDebInfo", true);
|
||||
fullPathImpDebug += "/";
|
||||
fullPathImpRelease += "/";
|
||||
fullPathImpMinSizeRel += "/";
|
||||
|
||||
Reference in New Issue
Block a user