diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-03-29 18:33:49 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-03-29 18:33:49 (GMT) |
commit | 4fd3292d04a8d6934d2d821767bf26baf7deaa90 (patch) | |
tree | 7e1b3f452d381529e6b3a0040d9d87983c2d1d82 /Source | |
parent | 388c005ccdf620cabe34fabcb6715a86962f5333 (diff) | |
download | CMake-4fd3292d04a8d6934d2d821767bf26baf7deaa90.zip CMake-4fd3292d04a8d6934d2d821767bf26baf7deaa90.tar.gz CMake-4fd3292d04a8d6934d2d821767bf26baf7deaa90.tar.bz2 |
ENH: add a test for find framework stuff in find_library, and fix the framework search stuff
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmFindBase.cxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index e9ac5f6..eae6186 100644 --- a/Source/cmFindBase.cxx +++ b/Source/cmFindBase.cxx @@ -116,6 +116,31 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn) this->SetError("called with incorrect number of arguments"); return false; } + std::string ff = this->Makefile->GetSafeDefinition("CMAKE_FIND_FRAMEWORK"); + if(ff == "NEVER") + { + this->SearchFrameworkLast = false; + this->SearchFrameworkFirst = false; + this->SearchFrameworkOnly = false; + } + else if (ff == "ONLY") + { + this->SearchFrameworkLast = false; + this->SearchFrameworkFirst = false; + this->SearchFrameworkOnly = true; + } + else if (ff == "FIRST") + { + this->SearchFrameworkLast = false; + this->SearchFrameworkFirst = true; + this->SearchFrameworkOnly = false; + } + else if (ff == "LAST") + { + this->SearchFrameworkLast = true; + this->SearchFrameworkFirst = false; + this->SearchFrameworkOnly = false; + } // CMake versions below 2.3 did not search all these extra // locations. Preserve compatibility unless a modern argument is @@ -479,6 +504,9 @@ void cmFindBase::ExpandRegistryAndCleanPath() void cmFindBase::PrintFindStuff() { + std::cerr << "SearchFrameworkLast: " << this->SearchFrameworkLast << "\n"; + std::cerr << "SearchFrameworkOnly: " << this->SearchFrameworkOnly << "\n"; + std::cerr << "SearchFrameworkFirst: " << this->SearchFrameworkFirst << "\n"; std::cerr << "VariableName " << this->VariableName << "\n"; std::cerr << "VariableDocumentation " << this->VariableDocumentation << "\n"; std::cerr << "NoDefaultPath " << this->NoDefaultPath << "\n"; |