|
@@ -108,15 +108,6 @@ void
|
|
|
cmGlobalUnixMakefileGenerator3
|
|
cmGlobalUnixMakefileGenerator3
|
|
|
::ComputeTargetObjects(cmGeneratorTarget* gt) const
|
|
::ComputeTargetObjects(cmGeneratorTarget* gt) const
|
|
|
{
|
|
{
|
|
|
- cmTarget* target = gt->Target;
|
|
|
|
|
- // Compute full path to object file directory for this target.
|
|
|
|
|
- std::string dir_max;
|
|
|
|
|
- dir_max += gt->Makefile->GetCurrentOutputDirectory();
|
|
|
|
|
- dir_max += "/";
|
|
|
|
|
- dir_max += gt->LocalGenerator->GetTargetDirectory(*target);
|
|
|
|
|
- dir_max += "/";
|
|
|
|
|
- gt->ObjectDirectory = dir_max;
|
|
|
|
|
-
|
|
|
|
|
std::vector<cmSourceFile*> objectSources;
|
|
std::vector<cmSourceFile*> objectSources;
|
|
|
gt->GetObjectSources(objectSources);
|
|
gt->GetObjectSources(objectSources);
|
|
|
// Compute the name of each object file.
|
|
// Compute the name of each object file.
|
|
@@ -126,11 +117,27 @@ cmGlobalUnixMakefileGenerator3
|
|
|
{
|
|
{
|
|
|
cmSourceFile* sf = *si;
|
|
cmSourceFile* sf = *si;
|
|
|
std::string objectName = gt->LocalGenerator
|
|
std::string objectName = gt->LocalGenerator
|
|
|
- ->GetObjectFileNameWithoutTarget(*sf, dir_max);
|
|
|
|
|
|
|
+ ->GetObjectFileNameWithoutTarget(*sf, gt->ObjectDirectory);
|
|
|
gt->AddObject(sf, objectName);
|
|
gt->AddObject(sf, objectName);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+//----------------------------------------------------------------------------
|
|
|
|
|
+void
|
|
|
|
|
+cmGlobalUnixMakefileGenerator3
|
|
|
|
|
+::ComputeTargetObjectDirectory(cmGeneratorTarget* gt) const
|
|
|
|
|
+{
|
|
|
|
|
+ cmTarget* target = gt->Target;
|
|
|
|
|
+
|
|
|
|
|
+ // Compute full path to object file directory for this target.
|
|
|
|
|
+ std::string dir_max;
|
|
|
|
|
+ dir_max += gt->Makefile->GetCurrentOutputDirectory();
|
|
|
|
|
+ dir_max += "/";
|
|
|
|
|
+ dir_max += gt->LocalGenerator->GetTargetDirectory(*target);
|
|
|
|
|
+ dir_max += "/";
|
|
|
|
|
+ gt->ObjectDirectory = dir_max;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void cmGlobalUnixMakefileGenerator3::Configure()
|
|
void cmGlobalUnixMakefileGenerator3::Configure()
|
|
|
{
|
|
{
|
|
|
// Initialize CMAKE_EDIT_COMMAND cache entry.
|
|
// Initialize CMAKE_EDIT_COMMAND cache entry.
|