summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-07 20:21:29 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-08 15:27:02 (GMT)
commit1506f9ca56c813f6c1fee4cea90a1cd8e5a4a04d (patch)
treee8d4d85b8bbb7e8b8255863a4f0b0cd46816abe0 /Source/cmFindPackageCommand.h
parent8d484463725edec792c26fdd33547f7ad63c2c14 (diff)
downloadCMake-1506f9ca56c813f6c1fee4cea90a1cd8e5a4a04d.zip
CMake-1506f9ca56c813f6c1fee4cea90a1cd8e5a4a04d.tar.gz
CMake-1506f9ca56c813f6c1fee4cea90a1cd8e5a4a04d.tar.bz2
find_package: Drop search in recent cmake-gui locations
The find_package command, on Windows, has always searched build trees recently visited by cmake-gui (or CMakeSetup at one time). This was done when the command was created with the intention of simplifying workflows involving building multiple dependent projects. However, this behavior depends on recent developer interaction and therefore can create different find results based on transient system states. It can lead to surprising results and user confusion. Since this behavior was first added CMake has gained many more search options, better error messages when a package is not found, and a package registry. The latter in particular allows projects to make their build trees available for dependent projects to find without user intervention. Therefore the originally intended workflow can be achieved in other, more stable ways. After the above evoluion of find_package we have now decided that the magic search-where-cmake-gui-was behavior does more harm than good. Drop it. We do not need a policy for this behavior change because it only affects interactive use.
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r--Source/cmFindPackageCommand.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index 949dcb1..3eee404 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -89,7 +89,6 @@ private:
void FillPrefixesSystemEnvironment();
void FillPrefixesUserRegistry();
void FillPrefixesSystemRegistry();
- void FillPrefixesBuilds();
void FillPrefixesCMakeSystemVariable();
void FillPrefixesUserGuess();
void FillPrefixesUserHints();
@@ -138,7 +137,6 @@ private:
bool UseFindModules;
bool NoUserRegistry;
bool NoSystemRegistry;
- bool NoBuilds;
bool DebugMode;
bool UseLib64Paths;
bool PolicyScope;