cmLocalGenerator: add a GetObjectOutputRoot method

This will allow object locations to be changed in a single place.
This commit is contained in:
John Parent
2025-05-21 20:56:39 +02:00
committed by Ben Boeckel
parent b82a74d918
commit b1d9a5313c
2 changed files with 7 additions and 0 deletions

View File

@@ -4286,6 +4286,11 @@ std::string cmLocalGenerator::GetObjectFileNameWithoutTarget(
return this->CreateSafeUniqueObjectFileName(objectName, dir_max);
}
std::string cmLocalGenerator::GetObjectOutputRoot() const
{
return this->GetCurrentBinaryDirectory();
}
std::string cmLocalGenerator::GetSourceFileLanguage(cmSourceFile const& source)
{
return source.GetLanguage();

View File

@@ -438,6 +438,8 @@ public:
std::string const& GetCurrentBinaryDirectory() const;
std::string const& GetCurrentSourceDirectory() const;
virtual std::string GetObjectOutputRoot() const;
/**
* Generate a macOS application bundle Info.plist file.
*/