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

Function AddLinkDir

Source/cmLinkDirectoriesCommand.cxx:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static void AddLinkDir(cmMakefile& mf, std::string const& dir,
45 std::vector<std::string>& directories)
46{
47 std::string unixPath = dir;
48 cmSystemTools::ConvertToUnixSlashes(unixPath);
49 if (!cmSystemTools::FileIsFullPath(unixPath) &&
50 !cmGeneratorExpression::StartsWithGeneratorExpression(unixPath)) {
51 unixPath = cmStrCat(mf.GetCurrentSourceDirectory(), '/', unixPath);
52 }
53 directories.push_back(unixPath);
54}

Callers 1

cmLinkDirectoriesCommandFunction · 0.85

Calls 2

push_backMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…