| 334 | } |
| 335 | |
| 336 | void cmFindBase::FillCMakeVariablePath() |
| 337 | { |
| 338 | cmSearchPath& paths = this->LabeledPaths[PathLabel::CMake]; |
| 339 | |
| 340 | // Add CMake variables of the same name as the previous environment |
| 341 | // variables CMAKE_*_PATH to be used most of the time with -D |
| 342 | // command line options |
| 343 | std::string var = cmStrCat("CMAKE_", this->CMakePathName, "_PATH"); |
| 344 | paths.AddCMakePrefixPath("CMAKE_PREFIX_PATH"); |
| 345 | paths.AddCMakePath(var); |
| 346 | |
| 347 | if (this->CMakePathName == "PROGRAM") { |
| 348 | paths.AddCMakePath("CMAKE_APPBUNDLE_PATH"); |
| 349 | } else { |
| 350 | paths.AddCMakePath("CMAKE_FRAMEWORK_PATH"); |
| 351 | } |
| 352 | paths.AddSuffixes(this->SearchPathSuffixes); |
| 353 | } |
| 354 | |
| 355 | void cmFindBase::FillSystemEnvironmentPath() |
| 356 | { |
no test coverage detected