| 13 | std::vector<std::string>& directories); |
| 14 | |
| 15 | bool cmLinkDirectoriesCommand(std::vector<std::string> const& args, |
| 16 | cmExecutionStatus& status) |
| 17 | { |
| 18 | if (args.empty()) { |
| 19 | return true; |
| 20 | } |
| 21 | |
| 22 | cmMakefile& mf = status.GetMakefile(); |
| 23 | bool before = mf.IsOn("CMAKE_LINK_DIRECTORIES_BEFORE"); |
| 24 | |
| 25 | auto i = args.cbegin(); |
| 26 | if ((*i) == "BEFORE") { |
| 27 | before = true; |
| 28 | ++i; |
| 29 | } else if ((*i) == "AFTER") { |
| 30 | before = false; |
| 31 | ++i; |
| 32 | } |
| 33 | |
| 34 | std::vector<std::string> directories; |
| 35 | for (; i != args.cend(); ++i) { |
| 36 | AddLinkDir(mf, *i, directories); |
| 37 | } |
| 38 | |
| 39 | mf.AddLinkDirectory(cmList::to_string(directories), before); |
| 40 | |
| 41 | return true; |
| 42 | } |
| 43 | |
| 44 | static void AddLinkDir(cmMakefile& mf, std::string const& dir, |
| 45 | std::vector<std::string>& directories) |
nothing calls this directly
no test coverage detected
searching dependent graphs…