BUG: Fix cmFindBase::AddMacPath to actually use its arguments after previous refactoring commit.

This commit is contained in:
Brad King 2008-06-06 09:06:27 -04:00
parent dcdcd00ffa
commit 3c8ed0d600
1 changed files with 3 additions and 3 deletions

View File

@ -386,19 +386,19 @@ void cmFindBase::AddMacPath(const char* var, const char* sysvar)
// first environment variables
if(!this->NoCMakeEnvironmentPath)
{
this->AddEnvPath("CMAKE_FRAMEWORK_PATH");
this->AddEnvPath(var);
}
// add cmake variables
if(!this->NoCMakePath)
{
this->AddCMakePath("CMAKE_FRAMEWORK_PATH");
this->AddCMakePath(var);
}
// add cmake system variables
if(!this->NoCMakeSystemPath)
{
this->AddCMakePath("CMAKE_SYSTEM_FRAMEWORK_PATH");
this->AddCMakePath(sysvar);
}
}