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

Method WriteTargetSpecifics

Source/cmGhsMultiTargetGenerator.cxx:170–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void cmGhsMultiTargetGenerator::WriteTargetSpecifics(std::ostream& fout,
171 std::string const& config)
172{
173 std::string outpath;
174
175 /* Determine paths from the target project file to where the output artifacts
176 * need to be located.
177 */
178 if (this->TagType != GhsMultiGpj::SUBPROJECT) {
179 // set target binary file destination
180 std::string binpath = this->GeneratorTarget->GetSupportDirectory();
181 outpath = cmSystemTools::RelativePath(
182 binpath, this->GeneratorTarget->GetDirectory(config));
183 /* clang-format off */
184 fout << " :binDirRelative=\"" << outpath << "\"\n"
185 " -o \"" << this->TargetNameReal << "\"\n";
186 /* clang-format on */
187 }
188
189 // set target object file destination
190 outpath = ".";
191 fout << " :outputDirRelative=\"" << outpath << "\"\n";
192}
193
194void cmGhsMultiTargetGenerator::SetCompilerFlags(std::string const& config,
195 std::string const& language)

Callers 1

GenerateTargetMethod · 0.95

Calls 2

GetSupportDirectoryMethod · 0.80
GetDirectoryMethod · 0.45

Tested by

no test coverage detected