summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2019-07-22 19:44:37 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2019-07-22 21:17:02 (GMT)
commit609fe39043f37366b50ee5ac0ae283b93af23492 (patch)
tree2c976feb6faa126bf03f279748b2e6fd690df9eb /Source/cmFindPackageCommand.cxx
parentff29c92df63ec9a9311b56537db285920c8faa30 (diff)
downloadCMake-609fe39043f37366b50ee5ac0ae283b93af23492.zip
CMake-609fe39043f37366b50ee5ac0ae283b93af23492.tar.gz
CMake-609fe39043f37366b50ee5ac0ae283b93af23492.tar.bz2
FindPackage: Support `NO_[]_PATH` global call options
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index c6d599e..e4551dd 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -225,6 +225,9 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args,
this->SortDirection = strcmp(sd, "ASC") == 0 ? Asc : Dec;
}
+ // Find what search path locations have been enabled/disable
+ this->SelectDefaultSearchModes();
+
// Find the current root path mode.
this->SelectDefaultRootPathMode();