summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-12-14 20:46:15 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2007-12-14 20:46:15 -0500
commit779877a2eeb96124f8959938b943579620d87416 (patch)
treec50d6f0a9d4d25c48bde5a39138717b48dfef00a
parenta5e76555bf9ac5fac6876ba73f8c3a7cdcabc351 (diff)
downloadcmake-779877a2eeb96124f8959938b943579620d87416.tar.gz
BUG: fix for bug 6039 LIB and INCLUDE not used for find stuff
-rw-r--r--Source/cmFindLibraryCommand.cxx1
-rw-r--r--Source/cmFindPathCommand.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
index 208ed02a54..fb836c854b 100644
--- a/Source/cmFindLibraryCommand.cxx
+++ b/Source/cmFindLibraryCommand.cxx
@@ -38,6 +38,7 @@ cmFindLibraryCommand::cmFindLibraryCommand()
"CMAKE_FIND_ROOT_PATH_MODE_XXX",
"CMAKE_FIND_ROOT_PATH_MODE_LIBRARY");
+ this->EnvironmentPath = "LIB";
this->GenericDocumentation +=
"\n"
"If the library found is a framework, then VAR will be set to "
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx
index 80d0b102c7..00c08ec2bd 100644
--- a/Source/cmFindPathCommand.cxx
+++ b/Source/cmFindPathCommand.cxx
@@ -21,6 +21,7 @@
cmFindPathCommand::cmFindPathCommand()
{
+ this->EnvironmentPath = "INCLUDE";
this->IncludeFileInPath = false;
cmSystemTools::ReplaceString(this->GenericDocumentation,
"FIND_XXX", "find_path");