From d1fdc38c68366090779ce743a7a2d40fa8d6200b Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 19 Dec 2007 10:34:43 -0500 Subject: ENH: Added CMAKE_SYSTEM_PREFIX_PATH variable. --- Source/cmFindBase.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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" + " /XXX_SUBDIR for each 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 paths; + if(const char* prefixPath = + this->Makefile->GetDefinition("CMAKE_SYSTEM_PREFIX_PATH")) + { + std::vector prefixPaths; + cmSystemTools::ExpandListArgument(prefixPath, prefixPaths); + this->AddFindPrefix(paths, prefixPaths); + } if(const char* path = this->Makefile->GetDefinition(var.c_str())) { cmSystemTools::ExpandListArgument(path, paths); -- cgit v0.12