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

Class TargetLinkDirectoriesImpl

Source/cmTargetLinkDirectoriesCommand.cxx:17–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace {
16
17class TargetLinkDirectoriesImpl : public cmTargetPropCommandBase
18{
19public:
20 using cmTargetPropCommandBase::cmTargetPropCommandBase;
21
22private:
23 void HandleMissingTarget(std::string const& name) override
24 {
25 this->Makefile->IssueMessage(
26 MessageType::FATAL_ERROR,
27 cmStrCat("Cannot specify link directories for target \"", name,
28 "\" which is not built by this project."));
29 }
30
31 std::string Join(std::vector<std::string> const& content) override;
32
33 bool HandleDirectContent(cmTarget* tgt,
34 std::vector<std::string> const& content,
35 bool prepend, bool /*system*/) override
36 {
37 cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
38 tgt->InsertLinkDirectory(BT<std::string>(this->Join(content), lfbt),
39 prepend);
40 return true; // Successfully handled.
41 }
42};
43
44std::string TargetLinkDirectoriesImpl::Join(
45 std::vector<std::string> const& content)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…