MCPcopy Create free account
hub / github.com/Kitware/CMake / GetObjectDirectory

Method GetObjectDirectory

Source/cmGeneratorTarget.cxx:4063–4078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4061}
4062
4063std::string cmGeneratorTarget::GetObjectDirectory(
4064 std::string const& config) const
4065{
4066 std::string obj_dir =
4067 this->GlobalGenerator->ExpandCFGIntDir(this->ObjectDirectory, config);
4068#if defined(__APPLE__)
4069 // Replace Xcode's placeholder for the object file directory since
4070 // installation and export scripts need to know the real directory.
4071 // Xcode has build-time settings (e.g. for sanitizers) that affect this,
4072 // but we use the default here. Users that want to enable sanitizers
4073 // will do so at the cost of object library installation and export.
4074 cmSystemTools::ReplaceString(obj_dir, "$(OBJECT_FILE_DIR_normal:base)",
4075 "Objects-normal");
4076#endif
4077 return obj_dir;
4078}
4079
4080void cmGeneratorTarget::GetTargetObjectNames(
4081 std::string const& config, std::vector<std::string>& objects) const

Callers 15

GetPchFileObjectMethod · 0.95
GetIncludeDirectoriesMethod · 0.95
WriteObjectRuleFilesMethod · 0.80
AddISPCDependenciesMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
GetFilesMethod · 0.80

Calls 1

ExpandCFGIntDirMethod · 0.45

Tested by

no test coverage detected