summaryrefslogtreecommitdiff
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-06-09 15:22:09 -0400
committerBrad King <brad.king@kitware.com>2008-06-09 15:22:09 -0400
commitd50785e26e68ba58aed6e59cb0cb8dcba7eb06a1 (patch)
tree27cd2167c4bccdb7ff84ddea160cb95a68b9785e /Source/cmFindPackageCommand.cxx
parentfdb17d604cd8e353bfedcc256be2bf12f2071ded (diff)
downloadcmake-d50785e26e68ba58aed6e59cb0cb8dcba7eb06a1.tar.gz
ENH: Make find_* command search order more intuitive.
- The CMAKE_PREFIX_PATH and similar variables have both environment and CMake cache versions. - Previously the environment value was checked before the cache value. - Now the cache value is favored because it is more specific.
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 08a96e0efd..f4e36e077e 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -239,16 +239,16 @@ cmFindPackageCommand::cmFindPackageCommand()
"CMAKE_FIND_APPBUNDLE determine the order of preference "
"as specified below.\n"
"The set of installation prefixes is constructed using the following "
- "steps. If NO_DEFAULT_PATH is specified steps 1-5 are skipped.\n"
- "1. Search cmake specific environment variables. This "
- "can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.\n"
+ "steps. If NO_DEFAULT_PATH is specified all NO_* options are enabled.\n"
+ "1. Search paths specified in cmake-specific cache variables. "
+ "These are intended to be used on the command line with a -DVAR=value. "
+ "This can be skipped if NO_CMAKE_PATH is passed.\n"
" CMAKE_PREFIX_PATH\n"
" CMAKE_FRAMEWORK_PATH\n"
" CMAKE_APPBUNDLE_PATH\n"
- "2. Search cmake variables with the same names as the cmake specific "
- "environment variables. These are intended to be used on the command "
- "line with a -DVAR=value. This can be skipped if NO_CMAKE_PATH "
- "is passed.\n"
+ "2. Search paths specified in cmake-specific environment variables. "
+ "These are intended to be set in the user's shell configuration. "
+ "This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.\n"
" CMAKE_PREFIX_PATH\n"
" CMAKE_FRAMEWORK_PATH\n"
" CMAKE_APPBUNDLE_PATH\n"
@@ -960,8 +960,8 @@ void cmFindPackageCommand::AppendSuccessInformation()
//----------------------------------------------------------------------------
void cmFindPackageCommand::ComputePrefixes()
{
- this->AddPrefixesCMakeEnvironment();
this->AddPrefixesCMakeVariable();
+ this->AddPrefixesCMakeEnvironment();
this->AddPrefixesUserHints();
this->AddPrefixesSystemEnvironment();
this->AddPrefixesBuilds();