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

Method AddLinkLibrary

Source/cmOrderDirectories.cxx:305–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void cmOrderDirectories::AddLinkLibrary(std::string const& fullPath)
306{
307 // Link extension info is required for library constraints.
308 assert(!this->LinkExtensions.empty());
309
310 // Add the link library at most once.
311 if (this->EmittedConstraintLibrary.insert(fullPath).second) {
312 // Implicit link directories need special handling.
313 if (!this->ImplicitDirectories.empty()) {
314 std::string dir = cmSystemTools::GetFilenamePath(fullPath);
315 if (this->IsImplicitDirectory(dir)) {
316 this->ImplicitDirEntries.push_back(
317 cm::make_unique<cmOrderDirectoriesConstraintLibrary>(this,
318 fullPath));
319 return;
320 }
321 }
322
323 // Construct the link library entry.
324 this->ConstraintEntries.push_back(
325 cm::make_unique<cmOrderDirectoriesConstraintLibrary>(this, fullPath));
326 }
327}
328
329void cmOrderDirectories::AddUserDirectories(
330 std::vector<std::string> const& extra)

Callers

nothing calls this directly

Calls 4

IsImplicitDirectoryMethod · 0.95
push_backMethod · 0.80
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected