ENH: avoid adding junk into paths

This commit is contained in:
Bill Hoffman 2006-03-10 11:12:53 -05:00
parent d633bac7bc
commit e0be3c7125

View File

@ -164,18 +164,30 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
} }
else if (args[j] == "NO_SYSTEM_PATH") else if (args[j] == "NO_SYSTEM_PATH")
{ {
doingPaths = false;
doingPathSuf = false;
doingNames = false;
this->NoSystemPath = true; this->NoSystemPath = true;
} }
else if (args[j] == "NO_CMAKE_PATH") else if (args[j] == "NO_CMAKE_PATH")
{ {
doingPaths = false;
doingPathSuf = false;
doingNames = false;
this->NoCMakePath = true; this->NoCMakePath = true;
} }
else if (args[j] == "NO_CMAKE_ENVIRONMENT_PATH") else if (args[j] == "NO_CMAKE_ENVIRONMENT_PATH")
{ {
doingPaths = false;
doingPathSuf = false;
doingNames = false;
this->NoCMakeEnvironmentPath = true; this->NoCMakeEnvironmentPath = true;
} }
else if (args[j] == "NO_CMAKE_SYSTEM_PATH") else if (args[j] == "NO_CMAKE_SYSTEM_PATH")
{ {
doingPaths = false;
doingPathSuf = false;
doingNames = false;
this->NoCMakeSystemPath = true; this->NoCMakeSystemPath = true;
} }
else else