summaryrefslogtreecommitdiffstats
path: root/Source/cmFindBase.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-06-06 13:06:27 (GMT)
committerBrad King <brad.king@kitware.com>2008-06-06 13:06:27 (GMT)
commit3c8ed0d600bf466ed8607711adce362dc801db02 (patch)
tree0c24d202f5f2f192b0300ba8e05513c27e90177b /Source/cmFindBase.cxx
parentdcdcd00ffa5e24906ff985b9fa8d3c3cc7ef8615 (diff)
downloadCMake-3c8ed0d600bf466ed8607711adce362dc801db02.zip
CMake-3c8ed0d600bf466ed8607711adce362dc801db02.tar.gz
CMake-3c8ed0d600bf466ed8607711adce362dc801db02.tar.bz2
BUG: Fix cmFindBase::AddMacPath to actually use its arguments after previous refactoring commit.
Diffstat (limited to 'Source/cmFindBase.cxx')
-rw-r--r--Source/cmFindBase.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx
index 0b431bf..f5ac83d 100644
--- a/Source/cmFindBase.cxx
+++ b/Source/cmFindBase.cxx
@@ -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);
}
}