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

Method MaybeGetLocation

Source/cmGeneratorTarget.cxx:1044–1056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042}
1043
1044cm::optional<std::string> cmGeneratorTarget::MaybeGetLocation(
1045 std::string const& config) const
1046{
1047 cm::optional<std::string> location;
1048 if (cmGeneratorTarget::ImportInfo const* imp = this->GetImportInfo(config)) {
1049 if (!imp->Location.empty()) {
1050 location = imp->Location;
1051 }
1052 } else {
1053 location = this->GetFullPath(config, cmStateEnums::RuntimeBinaryArtifact);
1054 }
1055 return location;
1056}
1057
1058std::vector<cmCustomCommand> const& cmGeneratorTarget::GetPreBuildCommands()
1059 const

Callers 1

CollectDllsMethod · 0.80

Calls 3

GetImportInfoMethod · 0.95
GetFullPathMethod · 0.95
emptyMethod · 0.45

Tested by

no test coverage detected