diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2010-08-12 22:20:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-08-13 15:53:28 (GMT) |
commit | 1221581aa8de2b4bb06e09894940dba6ff90caa1 (patch) | |
tree | 0b2559f8f54e203d189056464c48e8d096ab73da /Source/cmFindBase.cxx | |
parent | 7b632e5ac62cb2af74025b71660a1c5822fcfc39 (diff) | |
download | CMake-1221581aa8de2b4bb06e09894940dba6ff90caa1.zip CMake-1221581aa8de2b4bb06e09894940dba6ff90caa1.tar.gz CMake-1221581aa8de2b4bb06e09894940dba6ff90caa1.tar.bz2 |
Teach find_* commands to ignore some paths
Add platform configuration variable CMAKE_SYSTEM_IGNORE_PATH and user
configuration variable CMAKE_IGNORE_PATH. These specify a set of
directories that will be ignored by all the find commands. Update
FindPackageTest so that several cases will fail without a functioning
CMAKE_IGNORE_PATH.
Diffstat (limited to 'Source/cmFindBase.cxx')
-rw-r--r-- | Source/cmFindBase.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index a54ad7a..e1188d5 100644 --- a/Source/cmFindBase.cxx +++ b/Source/cmFindBase.cxx @@ -269,6 +269,11 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn) } this->ExpandPaths(); + // Filter out ignored paths from the prefix list + std::set<std::string> ignored; + this->GetIgnoredPaths(ignored); + this->FilterPaths(this->SearchPaths, ignored); + // Handle search root stuff. this->RerootPaths(this->SearchPaths); |