summaryrefslogtreecommitdiffstats
path: root/Source/cmFindBase.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-19 15:34:43 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-19 15:34:43 (GMT)
commitd1fdc38c68366090779ce743a7a2d40fa8d6200b (patch)
tree6236d99f51ee8d0bdd164ed41b4b6fb364b0e571 /Source/cmFindBase.cxx
parentac017f7aba06f99611d2dd98dd36ea0ef376dd8d (diff)
downloadCMake-d1fdc38c68366090779ce743a7a2d40fa8d6200b.zip
CMake-d1fdc38c68366090779ce743a7a2d40fa8d6200b.tar.gz
CMake-d1fdc38c68366090779ce743a7a2d40fa8d6200b.tar.bz2
ENH: Added CMAKE_SYSTEM_PREFIX_PATH variable.
Diffstat (limited to 'Source/cmFindBase.cxx')
-rw-r--r--Source/cmFindBase.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx
index e28d320..16bee54 100644
--- a/Source/cmFindBase.cxx
+++ b/Source/cmFindBase.cxx
@@ -104,6 +104,7 @@ cmFindBase::cmFindBase()
"4. Search cmake variables defined in the Platform files "
"for the current system. This can be skipped if NO_CMAKE_SYSTEM_PATH "
"is passed.\n"
+ " <prefix>/XXX_SUBDIR for each <prefix> in CMAKE_SYSTEM_PREFIX_PATH\n"
" CMAKE_SYSTEM_FRAMEWORK_PATH\n"
" CMAKE_SYSTEM_APPBUNDLE_PATH\n"
" CMAKE_SYSTEM_XXX_PATH\n"
@@ -738,6 +739,13 @@ void cmFindBase::AddCMakeSystemVariables()
var += this->CMakePathName;
var += "_PATH";
std::vector<std::string> paths;
+ if(const char* prefixPath =
+ this->Makefile->GetDefinition("CMAKE_SYSTEM_PREFIX_PATH"))
+ {
+ std::vector<std::string> prefixPaths;
+ cmSystemTools::ExpandListArgument(prefixPath, prefixPaths);
+ this->AddFindPrefix(paths, prefixPaths);
+ }
if(const char* path = this->Makefile->GetDefinition(var.c_str()))
{
cmSystemTools::ExpandListArgument(path, paths);