mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 10:39:28 -05:00
Refactor and seperate search path construction for find commands
Prior to this commit, the set of search paths to traverse for find commands was incrementally constructed. This change allows each group of paths, i.e. CMakeVariablePaths, UserHintsPaths, SystemEnvironmentPaths, etc. to be constructed and manipulated independently, and then all combined togethor.
This commit is contained in:
@@ -88,7 +88,7 @@ void cmFindLibraryCommand::AddArchitecturePaths(const char* suffix)
|
||||
{
|
||||
std::vector<std::string> original;
|
||||
original.swap(this->SearchPaths);
|
||||
for(std::vector<std::string>::iterator i = original.begin();
|
||||
for(std::vector<std::string>::const_iterator i = original.begin();
|
||||
i != original.end(); ++i)
|
||||
{
|
||||
this->AddArchitecturePath(*i, 0, suffix);
|
||||
|
||||
Reference in New Issue
Block a user