| 303 | } |
| 304 | |
| 305 | void 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 | |
| 329 | void cmOrderDirectories::AddUserDirectories( |
| 330 | std::vector<std::string> const& extra) |
nothing calls this directly
no test coverage detected